Cameron Simpson wrote:
> 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.
>
this is my /etc/crontab file.
SHELL=/bin/sh
PATH=/usr/bin:/usr/sbin:/sbin:/bin:/usr/lib/news/bin
MAILTO=
HOME=/
#
# check scripts in cron.hourly, cron.daily, cron.weekly, and cron.monthly
#
-*/15 * * * * root test -x /usr/lib/cron/run-crons &&
/usr/lib/cron/run-crons >/dev/null 2>&1
59 * * * * root rm -f /var/spool/cron/lastrun/cron.hourly
14 4 * * * root rm -f /var/spool/cron/lastrun/cron.daily
29 4 * * 6 root rm -f /var/spool/cron/lastrun/cron.weekly
44 4 1 * * root rm -f /var/spool/cron/lastrun/cron.monthly
02 9 * * * root /etc/rsync/rsync-d2
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/