The scp command will not work properly if your startup file in home directory like ~/.cshrc printing something on terminal with 'echo' command.
For example if the startup file on remote server [server0] as following:
# cat ~/.cshrc
USER_ENV=~/.cshrc.user
if [ -e $USER_ENV ]; then
source $USER_ENV
echo "Source file $USER_ENV successuflly"
fi
Then following command will fail:
scp test_file user1@server0:~
Test environment: SunOS 5.10 sparc SUNW,Netra-440
阅读(301) | 评论(0) | 转发(0) |