in reply to Process ID of launched program?
die "fork: $!" unless defined ($pid = fork); if ($pid) { # this is the parent process # do something parental } else { # this is the child process # do something childish }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Re: Process ID of launched program?
by chromatic (Archbishop) on Mar 02, 2000 at 01:25 UTC |