Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Question about communicating with a running perl script

by mhearse (Chaplain)
on Jul 06, 2015 at 20:35 UTC ( [id://1133440]=note: print w/replies, xml ) Need Help??


in reply to Question about communicating with a running perl script

My preferred method has been covered already in the previous replies. But there are many forms of Inter Process Communication that you may or may not know about: https://en.wikipedia.org/wiki/Inter-process_communication
  • Comment on Re: Question about communicating with a running perl script

Replies are listed 'Best First'.
Re^2: Question about communicating with a running perl script
by mhearse (Chaplain) on Jul 10, 2015 at 03:02 UTC
    Also, In addition to the other suggested solutions, classic UNIX dogma includes signals. You could add a signal handler to your code. That re-reads and applies the configuration info stored in db. The hangup signal is, by tradition, usually chosen for reloading configs.

Log In?
Username:
Password:

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

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

    No recent polls found