Skip Menu |

This queue is for tickets about the IPC-Cmd CPAN distribution.

Report information
The Basics
Id: 39297
Status: stalled
Priority: 0/
Queue: IPC-Cmd

People
Owner: Nobody in particular
Requestors: zorglups.mailing [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Feature request
Date: Mon, 15 Sep 2008 18:06:37 +0200
To: bug-IPC-Cmd [...] rt.cpan.org
From: "Pierre Hilson" <zorglups.mailing [...] gmail.com>
Jos, I was really happy to see a time-out implemented in your module as I really needed it. Whenever I hit the timeout, the script continues but I have no way to cleanup the 'launched command'. Would it be possible to get back the process id of the last executed command ala $! offered by the ksh ? I know depending on how you launch the command(s) you might or not provide it... Any idea if this can be done ? Thanks a lot for this really nice (and strong) module. Pierre
On Mon Sep 15 12:07:01 2008, zorglups.mailing@gmail.com wrote: Show quoted text
> Would it be possible to get back the process id of the last executed
command Show quoted text
> ala $! offered by the ksh ? > > I know depending on how you launch the command(s) you might or not provide > it... > > Any idea if this can be done ?
IPC::Cmd uses under the hood either: IPC::Run, IPC::Open3 or system(), depending on your platform and modules available. Only IPC::Open3 reports back what the pid is, the other 2 do not, and I can't find a way to get a hold of it either. If you know how to do that, then I can add this feature. Cheers,