in reply to obtaining pid's in Unix environment

The return value of system is the exit code of the command run. If you want to capture STDOUT from the command, you should use `` (Backticks), or qx//;.

May the Force be with you