Ok, so I have used linux for a long time but this is the weirdest thing I have encountered in a long time. Maybe I just don't do a lot of scp so probably missing something simple here. So in my .bashrc file I have the following.
export KERNEL=$(uname -r) #echo "HOST: $HOSTNAME: KERNEL VERSION: $KERNEL" if [ $KERNEL == "2.6.32-431.3.1.el6.x86_64" ];then ... logic here else .. more logic fi
Now if I uncomment that echo line then the following command doesn't work! It just shows the echo but doesn't do any copying. If I remove that line it does the copy
$ scp -r host1.net:/prod/path1/path2/dir1/etc /tmp/user/sim/dir1 HOST: host1.net: KERNEL VERSION: 3.4.70-1.el6.companyX $ scp -r host1.net:/prod/path1/path2/dir1/etc /tmp/user/sim/dir1
pybackup 100% 174 0.2KB/s 00:00
Proxy.ini 100% 623 0.6KB/s 00:00
This is strange...