rovf has asked for the wisdom of the Perl Monks concerning the following question:
Not really a problem, but just to satisfy my curiosity: On Windows, the following commands work the same from the Windows command line:
but the following does not:perl -we "system('pause')" pause cmd /c pause
It says that the command 'pause' is not found. How come? PAUSE is, AFIK, an internal command of CMD.EXE, and doing a "cmd /c pause" from the command line works fine. Why does it not work when called from Perl via system()?perl -we "system('cmd /c pause')"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Windows: system() and PAUSE
by Anonymous Monk on Apr 09, 2010 at 09:26 UTC | |
by rovf (Priest) on Apr 09, 2010 at 10:04 UTC | |
by ikegami (Patriarch) on Apr 09, 2010 at 18:37 UTC | |
by rovf (Priest) on Apr 12, 2010 at 13:26 UTC | |
by ikegami (Patriarch) on Apr 12, 2010 at 16:00 UTC | |
by Anonymous Monk on Apr 12, 2010 at 13:45 UTC | |
by BrowserUk (Patriarch) on Apr 09, 2010 at 10:31 UTC | |
by rovf (Priest) on Apr 09, 2010 at 12:02 UTC | |
by BrowserUk (Patriarch) on Apr 09, 2010 at 12:06 UTC | |
| |
by cdarke (Prior) on Apr 09, 2010 at 10:27 UTC | |
by rovf (Priest) on Apr 09, 2010 at 11:59 UTC | |
|
Re: Windows: system() and PAUSE
by cdarke (Prior) on Apr 09, 2010 at 09:00 UTC | |
|
Re: Windows: system() and PAUSE
by ikegami (Patriarch) on Apr 09, 2010 at 08:59 UTC | |
by rovf (Priest) on Apr 09, 2010 at 10:16 UTC |