Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: How do I get output and return code, and time-out the process under Win 32?

by ton (Friar)
on Apr 06, 2001 at 02:42 UTC ( #70334=note: print w/replies, xml ) Need Help??


in reply to How do I get output and return code, and time-out the process under Win 32?

Backticks will return the output as of Perl 5.6 (at least for the ActiveState distribution). The return code is stored in $?
$result = `somesyscall`; $retCode = $?;
Dunno about timing out a process; you might want to look at Win32::Process, which should comes with the ActiveState distribution. You can also find it on CPAN.
  • Comment on Re: How do I get output and return code, and time-out the process under Win 32?
  • Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://70334]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2021-05-18 02:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Perl 7 will be out ...





    Results (171 votes). Check out past polls.

    Notices?