in reply to IPC::Run and start(); pump(); finish()

If you can pursuade IPC::Run to give you the pid of the process, then you could use kill 0, pid; as part of your pump loop to check if the process is still running.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

Replies are listed 'Best First'.
Re^2: IPC::Run and start(); pump(); finish()
by Anonymous Monk on Nov 10, 2005 at 20:58 UTC
    good idea..now i just need to figure out HOW to get the proc id from it. ive already fired off an email to the module's author :)

      A quick deco at the source on cpan suggests that this is a hash-based class(ish) thing.

      The first thing I would try is dumping the object return by your call to start() using Data::Dumper and look for something obvious, like a key called PID.


      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
      "Science is about questioning the status quo. Questioning authority".
      In the absence of evidence, opinion is indistinguishable from prejudice.