in reply to Re^2: Using Perl to run a Windows command-line utility many times with ordered, parallel execution
in thread Using Perl to run a Windows command-line utility many times with ordered, parallel execution

For the first argument of system being 1, please see perldoc perlport.

  • Comment on Re^3: Using Perl to run a Windows command-line utility many times with ordered, parallel execution

Replies are listed 'Best First'.
Re^4: Using Perl to run a Windows command-line utility many times with ordered, parallel execution
by Jim (Curate) on Feb 02, 2014 at 14:45 UTC
    [Jim] It's still unclear to me what the first argument of system(), 1, is for…
    [ambrus] For the first argument of system being 1, please see perldoc perlport.

    I know about this fleeting reference; I've read it before. But this is all it says about wait() and waitpid():

    Can only be applied to process handles returned for processes spawned using system(1, ...) or pseudo processes created with fork(). (Win32)

    Huh? It doesn't explain the peculiar and non-orthogonal first argument, 1.

    Thank you again, ambrus.

    Jim