in reply to Process ID of launched program?

It's very easy. If successful, fork returns the pid of the child process. Thus, you can do something like:
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
    I wish I'd logged in for that. It was a good answer. :)