On 27Feb2006 09:07, Shaun Turner <[EMAIL PROTECTED]> wrote: | Hi all. | | I've probably done something silly here, or completely wrong, but hey, | that happens. | | I have a cron job setup to run a script (below) that runs fine if i have | only one line in it. As soon as i put more than one line in it fails to | run, not returning any error at all in the email. | | anyways, heres what i'm trying to do. just run some rsync jobs for | backup. If someone could tall me where i've stuffed up i'd be greatfull | | | #! /bin/sh | echo "Hello World!" | /usr/bin/rsync --delete -ar --stats /backup/w1/it1/d2 /backup/w2/it1/ | /usr/bin/rsync --delete -ar --stats /backup/w1/it2/d2 /backup/w2/it2/ | /usr/bin/rsync --delete -ar --stats /backup/w1/it3/d2 /backup/w2/it3/ | /usr/bin/rsync --delete -ar --stats /backup/w1/it4/d2 /backup/w2/it4/ | /usr/bin/rsync --delete -ar --stats /backup/w1/it6/d2 /backup/w2/it6/ | /usr/bin/rsync --delete -ar --stats /backup/w1/it20/d2 /backup/w2/it20/ | /usr/bin/rsync --delete -ar --stats /backup/w1/it8/d2 /backup/w2/it8/
Do you mean multiple lines in the crontab, or in the script? Can you show us the output of "crontab -l"? The script looks fine to me, btw. -- Cameron Simpson <[EMAIL PROTECTED]> DoD#743 http://www.cskk.ezoshosting.com/cs/ If the Earth is the size of a pea in New York, then the Sun is a beachball 50m away, Pluto is 2km away, and the next nearest star is in Tokyo. Now shrink Pluto's orbit into a coffee cup; then our Milky Way Galaxy fills North America. To unsubscribe from this list, please email [EMAIL PROTECTED] & you will be removed. Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/LINUX_Newbies/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
