Chinaunix首页 | 论坛 | 博客
  • 博客访问: 47154
  • 博文数量: 17
  • 博客积分: 720
  • 博客等级: 军士长
  • 技术积分: 157
  • 用 户 组: 普通用户
  • 注册时间: 2010-07-15 11:23
文章分类

全部博文(17)

文章存档

2011年(4)

2010年(13)

我的朋友

分类:

2011-03-11 11:28:07

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
阅读(273) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~