Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Perl System('') question

by almut (Canon)
on Nov 29, 2008 at 02:28 UTC ( [id://726710]=note: print w/replies, xml ) Need Help??


in reply to Perl System('') question

Use backticks instead of system:

my $out = `eject -n`;

(in case eject is writing to stdout, that is, otherwise redirect stderr to stdout (`eject -n 2>&1`)...)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2024-04-19 02:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found