Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
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?
[Corion]: Last year we renamed everybody with a name collision to "Alice". This year, we're renaming the remaining collisions to 'Bob' ;-)
[stevieb]: sigh... should have looked to see if version 2.36.1 was higher or lower than 2.36 when uploading to CPAN :/

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (10)
As of 2017-01-19 14:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (170 votes). Check out past polls.