Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-06-2004, 08:41 PM   #1
Registered: Sep 2004
Location: NJ USA
Distribution: Gentoo
Posts: 49

Rep: Reputation: 15
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?
Old 10-06-2004, 09:52 PM   #2
Registered: Aug 2004
Distribution: debian, SuSE
Posts: 365

Rep: Reputation: 35
#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
Old 10-06-2004, 09:54 PM   #3
Registered: Aug 2004
Distribution: debian, SuSE
Posts: 365

Rep: Reputation: 35
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mandrake 10.0 = Hourly Crashes jjthebear Linux - Hardware 13 08-28-2004 12:59 PM
Setup Crontab for AWSTATS hct224 Linux - Newbie 0 02-28-2004 12:34 PM
cron.hourly question Raw Kuts Linux - Newbie 1 08-18-2003 01:34 PM
How do I run/write an hourly cron? KoopaTroopa Linux - Newbie 1 08-16-2003 07:12 PM
hourly usage and limiting gadekar Linux - Networking 0 08-06-2003 11:52 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:31 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration