Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 27th March 2009, 12:41 AM
majorlinux Offline
Registered User
 
Join Date: Mar 2009
Posts: 5
Faster than Crontab

Is there anything faster than crontab? I am working on a project and need crontab to run faster than it currently does. Is that possible or is there software I can install to get it to do that?
Reply With Quote
  #2  
Old 27th March 2009, 12:43 AM
marko's Avatar
marko Offline
Registered User
 
Join Date: Jun 2004
Location: Laurel, MD USA
Posts: 5,448
Do you mean sub minute resolution? Crontab, anacron and 'at' all can only be set to do things at a time specified to the minute.
Reply With Quote
  #3  
Old 27th March 2009, 12:46 AM
majorlinux Offline
Registered User
 
Join Date: Mar 2009
Posts: 5
Yeah. That's what I want. I don't want to have to wait a minute to process the information. Its holding up the website's functionality seeing as the information doesn't quite take a minute to process.
Reply With Quote
  #4  
Old 27th March 2009, 12:47 AM
pete_1967 Online
Clueless in a Cuckooland
 
Join Date: Mar 2006
Location: Here now, elsewhere tomorrow.
Posts: 3,922
Set the run interval in your script.
__________________
A Drink is Not Just For Christmas - SaskyCom :thumb:


“Give a man a fish; you have fed him for today. Teach a man to fish; and you have fed him for a lifetime” so now go and...
RTFM FIRST: http://docs.fedoraproject.org/ & http://rute.2038bug.com/index.html.gz
Reply With Quote
  #5  
Old 27th March 2009, 12:50 AM
majorlinux Offline
Registered User
 
Join Date: Mar 2009
Posts: 5
How would you do something like that? I have the crontab running a script.
Reply With Quote
  #6  
Old 27th March 2009, 12:51 AM
marko's Avatar
marko Offline
Registered User
 
Join Date: Jun 2004
Location: Laurel, MD USA
Posts: 5,448
Or write your own application that would receive a signal or a communication via socket from the other software. That would tell it to start right now and handle that processing as needed.
Reply With Quote
  #7  
Old 27th March 2009, 12:52 AM
pete_1967 Online
Clueless in a Cuckooland
 
Join Date: Mar 2006
Location: Here now, elsewhere tomorrow.
Posts: 3,922
Sounds like you didn't write it.

In that case, use marko's suggestion or just a simple script calling it on set intervals.
__________________
A Drink is Not Just For Christmas - SaskyCom :thumb:


“Give a man a fish; you have fed him for today. Teach a man to fish; and you have fed him for a lifetime” so now go and...
RTFM FIRST: http://docs.fedoraproject.org/ & http://rute.2038bug.com/index.html.gz

Last edited by pete_1967; 27th March 2009 at 12:55 AM.
Reply With Quote
  #8  
Old 27th March 2009, 07:42 AM
Jamwa Offline
Registered User
 
Join Date: Jan 2008
Location: Nairobi Kenya
Posts: 540
use the "watch" command

watch -n<time_to_loop> <script_to_run>

where time_to_loop is in seconds

Example:

Lets say you have a script called monitor.sh. You can run it every second by doing
Code:
watch -n1 ./monitor.sh
or every 3 minutes by doing

Code:
watch -n180 ./monitor.sh
Good luck!
Reply With Quote
Reply

Tags
crontab, faster

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
crontab: no changes made to crontab Bone Using Fedora 2 15th November 2006 02:56 PM
FC6 keeps getting faster. SlowJet Fedora Focus 6 17th August 2006 10:33 PM
Are 64 bit pcs faster than 32? LinuxHippy Using Fedora 17 16th November 2005 05:48 PM
Is FC4 faster than FC3? xamox EOL (End Of Life) Versions 20 11th August 2005 05:29 PM


Current GMT-time: 17:51 (Monday, 20-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat