On Mon, Sep 29, 2008 at 03:26:17PM -0700, Daniel Nascimento wrote:
> Hello everyone!
> I'm learning perl and I need some help.
> 
> I want to write a script that execute commands into a linux terminal
> and catch the results but I don't know how to do this.
> 
> Somebody has a tip for me?
You can use the backticks e.g. `uname -a` to execute commands and fetch the 
output.
A better way is to use the open command with seperate descriptors for 
STDOUT and STDERR (if you need this, than have a look at the documentation of 
the open/open3
function (with perldoc -f open)).
> 
> Daniel
HTH,
Patrick
--
Patrick Kirsch
http://spielux.de | Open Source Spiele, Bewertungen, Auftragsentwicklung


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to