CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate:
Cron Every 30 seconds??

 



andy7t
User

May 3, 2004, 7:49 AM

Post #1 of 2 (657 views)
Cron Every 30 seconds?? Can't Post

Hello,

Is there anyway to run a perl script every 20 or 30 seconds?
At the moment i use it every 1 minute- using Cron, but i need to run it even more frequently.

Is there anyway to do this?
Redhat Linux 9
Thanks

Andrew


Kanji
User

May 3, 2004, 4:15 PM

Post #2 of 2 (655 views)
Re: [andy7t] Cron Every 30 seconds?? [In reply to] Can't Post

I'm not sure which version of cron RH9 comes with, but the more common version don't support seconds. However, it isn't too hard to work around if you run a shell script like the following from cron instead of your Perl script...


Code
#!/bin/sh 

your_script &

sleep 20
your_script &

sleep 20
your_script &

--k.

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives