[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: crontab



On Thu, 2003-12-04 at 19:17, Michael Martinell wrote:
> I am definitely doing something wrong here.  I want to schedule a job
> to run once at 12:00noon.  I set it up in cron.  It waits until
> 12:00noon, runs, and then runs every minute after.
> 
>  
> 
> Can anybody tell me what I have done wrong?
> 
> Here is my cron entry for this job.
> 
>  
> 
> * 12 * * * /usr/sbin/parselog

Try '0 12 * * * /usr/bin/parselog'.

According to crontab(5) an asterix means 'first-last'. Your line is
interpreted as '0-59' 12 * * * /usr/bin/parselog', which indeed means to
start the command every minute in the time from 12pm to 1am.

-alf

-alf



Reply to: