Oracle Solaris System Administration (MOSC)

MOSC Banner

Strange behavior from scp - What's going on?

edited Apr 3, 2012 9:06AM in Oracle Solaris System Administration (MOSC) 1 commentAnswered ✓
Hello,
I feel like posting a dumb question, but I couldn't explain why scp is behaving similar to cp ?!
# /usr/bin/scp /var/opt/SUNWsasm/log/sasm.log user@remote  <== Nothing happens; then I realized it's acting as cp
# ll
total 39
-rw-r--r--   1 root     root         19K Apr  3 15:40 user@remote


# which scp
/usr/bin/scp

# echo $PATH
/usr/bin:/usr/sbin:/usr/ccs/bin:/usr/ucb:/usr/sfw/bin:/opt/sfw/bin::/opt/sfw/sbin:/usr/platform/SUNW,Sun-Fire-880/rsc/:/etc/opt/SUNWconn/bin:/opt/SUNWswasr/bin
And this:
# which scp
/usr/bin/scp

# scp a b c
cp: cannot access a

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center