in reply to does system() return a pid?

G'day sciguy,

"... is that value the PID of the child process?"

As already pointed out, the answer is no; however, that's exactly what's returned (to the parent process) by fork. Perhaps that's what you were thinking of or looking for.

— Ken

Replies are listed 'Best First'.
Re^2: does system() return a pid?
by sciguy (Novice) on Oct 10, 2015 at 17:02 UTC
    Thanks. Any documentation I could read told me nothing. fork() makes sense.
      "Any documentation I could read ..."

      I assume from this statement that there's some documention you can't read (or, more likely, find or access). Here's some options:

      With internet access:

      Without internet access, the perldoc utility is still available from the command line. It should give you the documentation for whatever version of Perl you're using. At least the first, but probably both, of these should work for you:

      • $ perldoc perldoc
      • $ man perldoc

      — Ken