Strange behavior from scp - What's going on?
Hello,
I feel like posting a dumb question, but I couldn't explain why scp is behaving similar to cp ?!
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 cpAnd this:
# 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
# which scp
/usr/bin/scp
# scp a b c
cp: cannot access a
0