
anbu
New User
Aug 10, 2010, 5:18 AM
Post #1 of 1
(10547 views)
|
problem in getting the child process id
|
Can't Post
|
|
Hi, I'm trying run a executable file 'chunk' from my perl script through cygwin utility. my ($in, $out); my $cmd = "chunk -a update -i 00.000.00.0" my $pid = open2($out,$in, $cmd); This triggers the PID PPID PGID WINPID TTY UID STIME COMMAND 5348 3268 3268 5348 con 1013 14:33:50 /cygdrive/c/Program Files/chunk 5660 0 0 5660 ? 0 14:33:51 c:\Program Files\seperate This triggers the 'chunk' executable file in a seperate process and returns the process id '5348'of this process. But, this 5348 will inturn triggers another process seperately with process id '5660'. $pid contains 5348. Can u pls help me out in getting '5660' PID which is the child process triggered by 'chunk'? Thanks, Anbu
|