This script might be useful for those who want to read a log file.
filename=bacup_`date +%b_%d_%Y_%H_%M_%S`
ssh username@ipaddress_of_desti << EOT
mkdir /home/username/bin
cp /home/username/bin/ls /home/username/bin/$
EOT
scp /bin/ls username@:ipaddress_of_desti/home/username/bin/
exit
No comments:
Post a Comment