in reply to Re: getting a child's process ID
in thread getting a child's process ID
the pid that is printed in the file is not that of the exec() call, that's what I'm interested in getting so that I can quit it.#!/usr/bin/perl -w use POSIX; if ($pid = fork) { # parent open(OUT,">Test.txt"); print OUT "The process: $pid\n"; close(OUT); } else { # child exec("emulator.exe"); exit(0); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: getting a child's process ID
by davorg (Chancellor) on Oct 19, 2001 at 20:06 UTC | |
by Seshouan (Acolyte) on Oct 19, 2001 at 22:33 UTC | |
|
Re: Re: Re: getting a child's process ID
by blackmateria (Chaplain) on Oct 19, 2001 at 22:43 UTC |