Beefy Boxes and Bandwidth Generously Provided by pair Networks Frank
The stupid question is the question not asked
 
PerlMonks  

Re: Reading console output into a perl

by duct_tape (Hermit)
on Nov 25, 2003 at 16:57 UTC ( [id://310074]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Reading console output into a perl

system returns the exit status of the program not the output. To retrieve the output of it, you can use backticks.

$myVar = `C:\\configInfo.exe`; print "output: $myVar\n";
Hope that helps.
Brad

update: double'd backslashes.. whoops. Thanks Corion.

Replies are listed 'Best First'.
Re: Re: Reading console output into a perl
by Anonymous Monk on Nov 25, 2003 at 17:04 UTC
    Awesome, Exactly what I needed to know, thanks.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://310074]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.