Re: creating and logging a daily cron job
On Fri, 2008-10-17 at 19:45 +0300, Andrei Popescu wrote:
> On Fri,17.Oct.08, 18:10:26, Emanoil Kotsev wrote:
>
> > > this doesn't seem to be true.... the job runs and produces output and
> > > root mail is (via /etc/aliases - thanks to Doug!) sent to me but yet I
> > > don't get any o/p from /etc/cron.daily jobs whereas I do from all my
> > > crontab jobs...
> >
> > I think the *.sh extention is what's wrong, try removing it. just name the
> > script backup. That's what I did and it suddenly worked and is working
> > since 4 years ago.
>
> Actually the dot:
>
> ,----[ run-parts(8) ]
> | If neither the --lsbsysinit option nor the --regex option is given then
> | the names must consist entirely of upper and lower case
> | letters, digits, underscores, and hyphens.
> `----
Okay, my shorthand description of my problem was perhaps too shorthand!
The script isn't actually backup.sh but rather a link and as far as I
can tell is okay:
michael@ratty:/etc/cron.daily$ ls -lt|head
total 92
lrwxrwxrwx 1 root root 46 Oct 9 13:30 backup-rsync-hdb1_users-VERI
-> /home/michael/bin/backup-rsync-hdb1_users-VERI*
-rwxr-xr-x 1 root root 314 Mar 14 2007 aptitude*
-rwxr-xr-x 1 root root 577 Mar 8 2007 chkrootkit*
-rwxr-xr-x 1 root root 1154 Mar 4 2007 ntp*
-rwxr-xr-x 1 root root 5041 Feb 26 2007 apt*
-rwxr-xr-x 1 root root 469 Feb 26 2007 sysstat*
-rwxr-xr-x 1 root root 1450 Jan 21 2007 webalizer*
-rwxr-xr-x 1 root root 3961 Jan 20 2007 exim4-base*
-rwxr-xr-x 1 root root 3283 Dec 20 2006 standard*
thanks, Michael
Reply to: