Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Getting the output of a shell command

by BigJoe (Curate)
on Jun 05, 2001 at 00:09 UTC ( [id://85592]=note: print w/replies, xml ) Need Help??


in reply to Getting the output of a shell command

Well the title shows that a quick
my $output = `dir/b/x *.pl`;
would do because of wanting to capture it. But on further reading your description I think if you want to use a module go with Merlyn's advise but you can always do it this way
my $output = `dir/b/x *.pl > c:\dir\dir.txt`;
$output will have nothing in it but it will create the file and populate it. But try and use the modules for portability.

--BigJoe

Learn patience, you must.
Young PerlMonk, craves Not these things.
Use the source Luke.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2024-04-19 05:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found