in reply to Re: System call doesn't recognise '>'
in thread System call doesn't recognise '>'
But the snippet of code you included didn't work.
cmd.exe was indeed not part of the PATH.
I tried:
use Env qw(@PATH); #print "@PATH\n"; unshift @PATH, "C:\\windows\\system32\\cmd.exe"; #print @PATH; system "C:\\windows\\system32\\cmd.exe /C @array > $outfile"; shift @PATH;
The path to the command shell was added, but the result was still:
Can't spawn "cmd.exe": No such file or directory at D:\advanced_programming\test_syscall.pl line 26.
Or isn't it that what you suggested?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: System call doesn't recognise '>'
by Corion (Patriarch) on Dec 10, 2008 at 22:24 UTC | |
by Lauras (Initiate) on Dec 11, 2008 at 09:19 UTC | |
by Corion (Patriarch) on Dec 11, 2008 at 09:23 UTC | |
|
Re^3: System call doesn't recognise '>'
by almut (Canon) on Dec 10, 2008 at 22:57 UTC |