All pastes #736694 Raw Edit

Untitled

public text v1 · immutable
·published 2007-10-14 19:18 UTC
rendered paste body
in /etc/crontab
-------------------------------
* * * * root /bin/sh /data/chasecam/bin/update.sh
-------------------------------


Script contents (chown 755)
-------------------------------
#!/bin/sh
echo "Starting Sync";
sudo -u syscam /usr/bin/rsync -e 'ssh -p 22 -lsyscam' -avzp XX.XXX.XXX.XXX:/data/svn/projects/release/syscam/ /home/syscam >> /tmp/syscam-sync.log;
echo "end Sync";
-------------------------------
In the script its 4 lines not 5 line as it may seem when seen on this website.
XX.XXX.XXX.XXX = Masked IP :)


When it comes time from crontab to run the process (It wont) but it will run when i run it as root on CLI