LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-30-2004, 02:49 PM   #1
rockwell_001
LQ Newbie
 
Registered: Jun 2004
Posts: 23

Rep: Reputation: 15
cronjob entry in crontab


I have to write a cron job which executes a program every 5 minutes.so i have edited my crontab file as '*/12 * * * * root run-parts /etc/cron.minute'.The cron.minute is a directory which has my executable program.I have added the cron entry as root. But this doesnt work. Can u suggest me how to make it work.
 
Old 06-30-2004, 02:57 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
crontab -e

*/5 * * * * /path/to/your/command

No mucking around with cron.minute :}



Cheers,
Tink
 
Old 06-30-2004, 02:59 PM   #3
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
Every five minutes is */5 not */12 and you need to put the actual script in the path statement instead of stopping at the cron.minute directory.

Editt: That Tinster must be a speed typer

Last edited by homey; 06-30-2004 at 03:02 PM.
 
  


Reply


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
crontab entry? Master Fox Linux - Software 4 08-23-2005 01:20 PM
crontab job entry notolerance Linux - Software 2 02-20-2005 02:40 PM
making an entry in crontab through code (perl) akaash Programming 2 05-17-2004 03:36 AM
crontab entry pilipk01 Linux - General 4 11-19-2003 07:53 PM
hosts entry for a lan unit with no dns entry linxtc Linux - Networking 1 10-03-2003 08:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:17 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