Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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 scrutinizing the Monastery: (7)
As of 2014-07-11 23:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (236 votes), past polls