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

Re: Remotely Executing a background command

by starX (Chaplain)
on Jul 31, 2008 at 13:53 UTC ( #701421=note: print w/replies, xml ) Need Help??

in reply to Remotely Executing a background command

Why not fork off a child process after confirming your ssh connection is successful. Have the child process execute the command you need to check the return value of, and then signal the parent that it (the child) was successful, and that the parent is free to do its thing.

Disclaimer, I've never done this in Perl before, but it works splendidly in C. On POSIX compliant systems, at least. You might want to give perlipc a read if you think this interprocess communication route might be the way for you to go.

  • Comment on Re: Remotely Executing a background command

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2023-09-23 21:42 GMT
Find Nodes?
    Voting Booth?

    No recent polls found