Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: running Perl scripts in the background

by misc (Pilgrim)
on Jul 12, 2007 at 11:36 UTC ( #626205=note: print w/ replies, xml ) Need Help??


in reply to running Perl scripts in the background

I could imagine Storable] is your friend.
If you store your script's state in one object, it should be quite easy to save this object to disc and restore it later.

Assuming your pc could die while writing to the file, it would also be useful to use some rotation system for storing your object.
Perhaps it would be enough to sequentially store into two different files, syncing the filebuffers after writing.


Comment on Re: running Perl scripts in the background

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2014-08-30 21:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (294 votes), past polls