LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Hourly Crontab Setup (https://www.linuxquestions.org/questions/linux-newbie-8/hourly-crontab-setup-239599/)

gbkyle 10-06-2004 07:41 PM

Hourly Crontab Setup
 
Can someone please tell me how to properly setup a crontab to run every hour?

I have

* * * * * /usr/local/bin/webalizer > /dev/null

But it doesnt run... I once say webalizer <defunct> in the process list... i dunno if i did something wrong?

amfoster 10-06-2004 08:52 PM

#min hour date month dayofweek script

so hourly (on the hour) can be done with
0 * * * * mycommand

Best to use the full path to the command!

Doesn't work? an equiv would be
0 */1 * * * myprogram

amfoster 10-06-2004 08:54 PM

Oh yeah,

Any cron job that wopuld typically go out to standard out will be in your mail!

If I run 0 * * * * ps -ef

My mail would have the output of the ps -ef command.


All times are GMT -5. The time now is 06:07 PM.