Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Update a perl script when its running

by sundialsvc4 (Abbot)
on Feb 10, 2015 at 14:20 UTC ( [id://1116183]=note: print w/replies, xml ) Need Help??


in reply to Update a perl script when its running

I suggest that you need to be explicit about it ... if a job needs to be restarted or repeated, it needs to be able to run the same thing.   One simple way to do it would be to write a stub script that searches for the latest (e.g. last filename, where the filenames are soandso.##.pm), then requires that file and invokes its main method.

This allows you to explicitly keep every successive version of the software until you choose to discard or to archive it.   The stub-script should also be written so that you can specify the module-name to be loaded, on the command line, if you need to explicitly specify which one to run.   And I would never re-use a filename.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2024-03-29 04:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found