LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Closed Thread
  Search this Thread
Old 06-23-2006, 12:58 AM   #1
houssamfarag
LQ Newbie
 
Registered: Dec 2005
Posts: 10

Rep: Reputation: 0
how to run crontab job every 30 seconds


i was able to run crontab job every minute
by using */1

how to run it every 30 seconds for example

thanks a lot
 
Old 06-23-2006, 01:13 AM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
I could be wrong about this, but I don't think there is any "seconds" directive to the time string for cron.

But maybe you can use .5 minutes?
 
Old 06-23-2006, 01:23 AM   #3
jstephens84
Senior Member
 
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098

Rep: Reputation: 102Reputation: 102
Just out of curiosity, why would you want to run a crontab every 30 seconds?
 
Old 06-23-2006, 01:27 AM   #4
prozac
Member
 
Registered: Oct 2005
Location: Australia
Distribution: slackware 12.1
Posts: 753

Rep: Reputation: 32
Quote:
Originally Posted by jstephens84
Just out of curiosity, why would you want to run a crontab every 30 seconds?
maybe he wants to spam LQ. his posts are annoying, three posts in three diff forums, same questions.. 20sec, 30sec ..
 
Old 06-23-2006, 01:28 AM   #5
jstephens84
Senior Member
 
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098

Rep: Reputation: 102Reputation: 102
cronttab follows the order of
minutes, hours, day of month, month, day of week
 
Old 06-23-2006, 02:45 AM   #6
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
//Moderator note: you have crossposted a message, which is against the LQ Rules. Cross-posting is considered bad netiquette on your part, a waste of resources on LQ's part and a waste of time for LQ members who take the time to answer your questions in more than one place.
Please do not do that again.

FUP to: is unnecessary, thread (copies) contain answer.
 
  


Closed Thread



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
Cron Job Syntax for a task in seconds AJones Linux - Software 2 07-22-2005 12:56 PM
crontab job entry notolerance Linux - Software 2 02-20-2005 02:40 PM
Why does CUPS print after 15 seconds whether the job is ready or not? Izzard Linux - General 2 12-11-2003 03:36 AM
crontab job to restart tomcat... barbean Programming 0 11-17-2003 12:58 AM
automating a job to occur every 60 seconds Tigger Linux - General 1 05-28-2003 11:40 PM

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

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