Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Sending and receiving data to standard input and output of the linux based server.

by salva (Abbot)
on Mar 01, 2013 at 09:52 UTC ( #1021207=note: print w/replies, xml ) Need Help??


in reply to Sending and receiving data to standard input and output of the linux based server.

Nowadays, the standard way to run commands in a remote Linux or Unix server is to use SSH. Telnet is an insecure and obsolete protocol.
use Net::SSH::Any; my $ssh = Net::SSH::Any->new($host, user => $user, password => $passwo +rd); my $output = $ssh->capture({stdin_data => $input_data}, $cmd);
On Windows, in addition to Net::SSH::Any, you will have to install Net::SSH2, there are ppm versions of this package available from the net.
  • Comment on Re: Sending and receiving data to standard input and output of the linux based server.
  • Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1021207]
help
Chatterbox?
[Discipulus]: was global var or global war?!?
[Discipulus]: hey doc, you said global var?!

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2017-04-29 21:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (534 votes). Check out past polls.