Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: shell execution question

by hacker (Priest)
on Jun 07, 2003 at 12:18 UTC ( [id://263950]=note: print w/replies, xml ) Need Help??


in reply to Re: shell execution question
in thread shell execution question

I've always been a fan of IPC::Open3 for things like this. With it, you can catch and manipulate STDIN, STDOUT, and STDERR, and it makes things like ping, ssh, rsync and rlogin type-tasks very easy.

You could also look into Net::Ping, Net::SSH, File::Rsync, and File::Remote, depending on exactly what it is you're trying to do on that remote system.

`Backticks` are almost never what you want to use, the most-obvious reason being the glaring security implications.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (2)
As of 2024-04-26 05:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found