Hi,
I have a problem with IPC Run3.
I use it successfully on Unix but cannot make it run on Windows.
Would you please let me know what I do wrong in the following simple script:
################################################
#!/usr/bin/env perl -w
use strict;
use IPC::Run3;
my @cmd = ("copy", "small.txt", "big.txt");
my $rc = 0;
$rc = run3(\@cmd, \undef, "output.txt", "errors.txt");
print "$rc\n";
###############################################
I always get the following error:
Can't spawn "cmd.exe": No such file or directory at C:\wss\cdev2\wssuite\components\trm\fk71\perl\5.8.6\lib/IPC/Run3.pm line 497.
I have a problem with IPC Run3.
I use it successfully on Unix but cannot make it run on Windows.
Would you please let me know what I do wrong in the following simple script:
################################################
#!/usr/bin/env perl -w
use strict;
use IPC::Run3;
my @cmd = ("copy", "small.txt", "big.txt");
my $rc = 0;
$rc = run3(\@cmd, \undef, "output.txt", "errors.txt");
print "$rc\n";
###############################################
I always get the following error:
Can't spawn "cmd.exe": No such file or directory at C:\wss\cdev2\wssuite\components\trm\fk71\perl\5.8.6\lib/IPC/Run3.pm line 497.