LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 12-22-2006, 04:44 PM   #1
ballistic509
Member
 
Registered: Feb 2006
Distribution: CentOS
Posts: 114

Rep: Reputation: 15
Crontab Question


How would i go about making a command perform ever couple minutes? i tried this but i think that this is five minutes after every hour, but i need every 5 minutes

Code:
5  *    * * *   root    COMMAND
 
Old 12-22-2006, 04:52 PM   #2
restless
Member
 
Registered: Feb 2003
Location: Belgium
Distribution: Debian
Posts: 166

Rep: Reputation: 31
if i'm not mistaking

Code:
*/5 * * * * CMD
should do the trick
 
Old 12-22-2006, 04:52 PM   #3
timdsmith
Member
 
Registered: Nov 2003
Location: The Colony, TX
Distribution: Slackware, Debian Etch, FreeBSD, MicroSh*t free.
Posts: 209

Rep: Reputation: 30
Code:
*/5 * * * * /path/to/script
will make it run every 5 minutes.

EDIT: restless beat me to it. :P
 
Old 12-22-2006, 05:20 PM   #4
ballistic509
Member
 
Registered: Feb 2006
Distribution: CentOS
Posts: 114

Original Poster
Rep: Reputation: 15
lol...thank you both
 
Old 12-22-2006, 05:27 PM   #5
restless
Member
 
Registered: Feb 2003
Location: Belgium
Distribution: Debian
Posts: 166

Rep: Reputation: 31
Quote:
Originally Posted by timdsmith
Code:
*/5 * * * * /path/to/script
will make it run every 5 minutes.

EDIT: restless beat me to it. :P
hehe finally i'm the first one to help someone
 
  


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
Crontab Question systemhackerz Red Hat 4 06-28-2006 12:02 AM
crontab question mmoor Fedora 5 05-20-2006 03:50 PM
crontab question kaplan71 Linux - General 4 07-18-2005 04:04 PM
Crontab question stefaandk Linux - Newbie 1 06-21-2005 07:31 AM
crontab question WeNdeL Linux - Newbie 1 03-06-2003 10:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 10:08 AM.

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