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

Re: making a perl script TSR? (on linux)

by Anonymous Monk
on Aug 23, 2005 at 19:30 UTC ( [id://486001]=note: print w/replies, xml ) Need Help??


in reply to making a perl script TSR? (on linux)

If you wanted to, you could, rather than have one script dump *EVERYTHING* to a file, you could have it just dump its PID, then communicate with it via signals.

ie: when the handler script runs, have it send the server script a SIGINT (kill("INT",$pid)) and open and write to a pipe to the server script; then have the server script, on receipt of a SIGINT, open and read from a pipe, or something like that.

it may not be pretty, but it would work well IF you know what you're doing. Of course, if you don't, then you'll end up with a mess.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (6)
As of 2024-04-23 19:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found