Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Scheduling script with pauses

by dmitri (Curate)
on Oct 10, 2013 at 03:49 UTC ( #1057672=note: print w/ replies, xml ) Need Help??


in reply to Scheduling script with pauses

It's quite easy, just send suspend and resume signals to the process:

sh$ kill -STOP $pid # this suspends it sh$ kill -CONT $pid # this resumes it
You can stick that in your crontab. If there is a process group to suspend and resume, use -$pid. Pretty much, read kill(2) man page.

Update: I see this answer was given already, I did not read to the end of BrowserUk's post first time around (I gave up around "Windows" :))


Comment on Re: Scheduling script with pauses
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1057672]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (10)
As of 2015-07-07 07:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (87 votes), past polls