Hi all
I would like to copy a series of mysql dumps through a bash script over ssh using cat from Machine#1 to remote#1
##Test to see if i can run the cat command on the remote machine.
Code:
echo "Date today is ${DATE}" |ssh -t -v user@xx.xx.xx.xx "sudo /bin/cat >> /mnt/destination/test.txt"
Code:
user ALL=(ALL:ALL) NOPASSWD: /bin/cat /mnt/destination/test.txt
Any help / suggestions is much appreciated!
Also will tee -a give the same result as cat >> ?
Thanks in advance
Kind regards!
- - , .
برچسب:
نویسنده: استخدام کار