Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I am trying to make a system call from perl:
#! C:\perl\bin\perl.exe my $file1 = "test1.txt"; system ( "check.bat > C:\\$file1 2>&1" );
The above system call does not seem to execute. But, when I type out the same command on dos prompt, it executes as expected. What might be wrong with the code above?
Thank you in advance.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: system calls
by crashtest (Curate) on Apr 22, 2005 at 22:09 UTC | |
|
Re: system calls
by phaylon (Curate) on Apr 22, 2005 at 20:49 UTC | |
by Anonymous Monk on Apr 22, 2005 at 20:54 UTC | |
by phaylon (Curate) on Apr 23, 2005 at 11:06 UTC | |
by jhourcle (Prior) on Apr 23, 2005 at 18:52 UTC | |
|
Re: system calls
by bofh_of_oz (Hermit) on Apr 22, 2005 at 20:48 UTC | |
by phaylon (Curate) on Apr 22, 2005 at 20:51 UTC | |
by Anonymous Monk on Apr 22, 2005 at 20:51 UTC |