in reply to executing commands in cmd using perl
My first stop would be system or exec-the former returns from the command, the latter turns control over to the process being executed and does not return to the script. If you are wanting the script to do control the process, or to process the output, then perhaps a read of the IPC (inter-process communications) doc would be informative. (You may also want to review the perlsec document, to be aware of possible areas of concern if you are dealing with potentially untrustworthy data.)
Hope that helps.
Update: 2014-12-30
s/possibly (untrustworthy)/potentially $1/
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: executing commands in cmd using perl
by Sudhk (Initiate) on Dec 30, 2014 at 17:04 UTC | |
by kennethk (Abbot) on Dec 30, 2014 at 17:21 UTC | |
by Laurent_R (Canon) on Dec 30, 2014 at 18:59 UTC | |
by Sudhk (Initiate) on Dec 30, 2014 at 19:22 UTC |