in reply to
Re: Windows specific shell command calls
in thread
Windows specific shell command calls
Is there no way to do both--catch both the error code and the output of the called command?
Comment on
Re: Re: Windows specific shell command calls
Replies are listed 'Best First'.
Re^3: Windows specific shell command calls
by
bart
(Canon)
on Mar 27, 2004 at 09:53 UTC
Well, you can use backticks/
qx
to capture the STDOUT, and check
$?
for the exit code — which agrees with what
system
returns ... check
perlvar
for details in
$?
.
[reply]
In Section
Seekers of Perl Wisdom