Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

RE: Running External Commands

by le (Friar)
on Jun 06, 2000 at 14:00 UTC ( #16574=note: print w/ replies, xml ) Need Help??

in reply to Running External Commands

system() doesn't gather the output of the executed program, it just returns the exit status. With backticks, you can collect the output. You could also open a pipe from a command:

open(PIPE, "command |") or die $!; while(<PIPE>) { # ... do something }

Comment on RE: Running External Commands
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2015-11-28 17:37 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (743 votes), past polls