Quote:
Originally Posted by lykwydchykyn
Why not just put the commands that worked manually into a script and run that in cron?
|
Im not sure that would work as you need to run 'ssh -L 873:localhost:873
username@fm.ols18.com' as root so it asks you for both your root password then your ols password. Once they have both been entered it holds the terminal window open where no more commands can be entered.
Code:
Welcome to Ubuntu 11.10 (GNU/Linux 3.0.0-28-server x86_64)
* Documentation: https://help.ubuntu.com/11.10/serverguide/C
New release 'precise' available.
Run 'do-release-upgrade' to upgrade to it.
Last login: Sat Mar 2 18:27:35 2013 from XXX-XXX-XXX-XXX.zone9.bethere.co.uk
Connection: XXX.XXX.XXX.XXX 53624 64.64.131.105 22
Client: XXX.XXX.XXX.XXX 53624 22
Terminal: /dev/pts/7
*************************************
You then need to open a second terminal window to run the rsync command.
rsync -avz --progress -b ~/Downloads rsync://username@localhost/username
Code:
MacBook:~$ rsync -avz --progress -b ~/Downloads rsync://username@localhost/username
Password:
building file list ...
819 files to consider
Downloads/Movie.avi
3768320 0% 106.51kB/s 1:54:15
So I have no idea where to start scripting that or even if it is possible.
Quote:
Originally Posted by propofol
How about :
Code:
rsync -avz --progress -e 'ssh -L 873:localhost:873' username@fm.ols18.com:/username ~/Downloads/
|
Thanks but that didn't work it still tells me I have a dirty shell
Code:
MacBook:~$ sudo rsync -avz --progress -e 'ssh -L 873:localhost:873' username@fm.ols18.com:/username ~/Downloads/
Password:
username@fm.ols18.com's password:
protocol version mismatch -- is your shell clean?
(see the rsync man page for an explanation)
rsync error: protocol incompatibility (code 2) at /SourceCache/rsync/rsync-42/rsync/compat.c(61) [receiver=2.6.9]
MacBook:~$
This is the example they show on the ols website
https://fm.ols18.com/Screen%20shot%2...57.56%20PM.png
Thanks again for the help.