LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 10-06-2004, 07:41 PM   #1
gbkyle
Member
 
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, 08:52 PM   #2
amfoster
Member
 
Registered: Aug 2004
Distribution: debian, SuSE
Posts: 365

Rep: Reputation: 36
#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, 08:54 PM   #3
amfoster
Member
 
Registered: Aug 2004
Distribution: debian, SuSE
Posts: 365

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


Reply



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 11:59 AM
Setup Crontab for AWSTATS hct224 Linux - Newbie 0 02-28-2004 11:34 AM
cron.hourly question Raw Kuts Linux - Newbie 1 08-18-2003 12:34 PM
How do I run/write an hourly cron? KoopaTroopa Linux - Newbie 1 08-16-2003 06:12 PM
hourly usage and limiting gadekar Linux - Networking 0 08-06-2003 10:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:25 PM.

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