Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

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?

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2015-10-10 11:45 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (255 votes), past polls