Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I've used them as both strings and arraysscript.pl arg1, ... argn Drive:\path\script.pl arg1, ... argn Drive:\path\perl.exe Drive:\path\script.pl arg1, ... argn
and$cmd = "script.pl arg1, ... argn";
Ive submitted them as@cmd = ("script.pl", arg1, etc, argn);
and alsosystem( $cmd ); system( @cmd ); use Win32::Process; Win32::Process::Create($process, "C:\\Perl\\bin\perl.exe", here I put any/all command lines above, 0, CREATE_NEW_CONSOLE, ".") || die "Create: $!";
The system command returns:Win32::Process::Create($process, "Drive:\path\script.pl", "arg1, ... argn", 0, CREATE_NEW_CONSOLE, ".") || die "Create: $!";
(as do backticks)'0' is not recognized as an internal or external command
I am frankly baffled. There must be something obvious that I'm missing, but I'm running out of guesses.Create: No such file or directory at scriptname.pl line nn.
Janitored by Arunbear - added code tags, as per Monastery guidelines
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: launching perl processes from a perl script on Win2K
by inman (Curate) on Oct 14, 2004 at 10:04 UTC | |
by dwhite20899 (Friar) on Oct 14, 2004 at 14:43 UTC | |
|
Re: launching perl processes from a perl script on Win2K
by Brutha (Friar) on Oct 14, 2004 at 07:18 UTC | |
by miseryandsuffering (Initiate) on Oct 14, 2004 at 08:50 UTC | |
by fglock (Vicar) on Oct 14, 2004 at 14:57 UTC | |
|
launching perl processes from a perl script on Win2K
by miseryandsuffering (Initiate) on Oct 14, 2004 at 07:19 UTC |