Re: using cron
Incoming from Hal Vaughan:
> On Thursday 21 April 2005 04:08 pm, brandon wrote:
> > [snip]
> > tar -zcvf /home/brandon/backup.tar.gz2 /etc/fstab /etc/X11/XF86Config-4
> >
> > i did a chmod +rwx on it, and placed it in the /etc/cron.daily/ directory.
>
> You don't put the script itself in the directory. Actually, you don't touch
> those directories. (How would cron know when to run it???)
/etc/crontab:
25 6 * * * root test -e /usr/sbin/anacron || run-parts --report /etc/cron.daily
This how chkrootkit gets run on my box every day. Brandon's just
missing the shebang (#!/bin/sh) at the top of his script.
--
Any technology distinguishable from magic is insufficiently advanced.
(*) http://www.spots.ab.ca/~keeling Please don't Cc: me.
- -
Reply to: