Re: Cron
On Sat, Sep 27, 2003 at 03:45:57AM +1000, Russell Shaw wrote:
> I set this with crontab -e :
>
> 3 * * * * /usr/bin/mailfilter ; /bin/echo "Mailfiltering" | /usr/bin/mail
> -s mai
> 1 * * * * /bin/echo "Date is `date`." | /usr/bin/mail -s cron root
> ###
>
> I should get mail every minute, but it doesn't work.
"1 * * * *" means "at :01 of every hour". You want "* * * * *" for
"every minute", and "*/3 * * * *" for "every three minutes".
(Frequencies that don't divide evenly into 60 are trickier.)
--
Colin Watson [cjwatson@flatline.org.uk]
Reply to:
- References:
- Cron
- From: Russell Shaw <rjshaw@iprimus.com.au>