Cron job questions

Svein Halvor Halvorsen svein-freebsd-questions at theloosingend.net
Fri Mar 12 04:33:34 PST 2004


[Dave Carrera]
> So if I
>
> #ee /etc/crontab (I prefer ee to vi )
>
> Add this
>
> *     2       *       *       *       root    /bin/csh /root/script.csh
>
> Save exit
>
> That should run my script at 2am every morning yes ?


[Frank Mueller]
>
>  Yes, correct.


I thought that putting an * in your crontab meant that your cronjob would
run for every possible value of that field, ie. that script.csh would run
every day at 2.00am, 2.01am, 2.02am, ..., 2.59am

The line should read:

	0     2       *       *       *       root    /bin/csh /root/script.csh

if you want your script run every day at 2.00 am.




sve


More information about the freebsd-questions mailing list