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

Re: Trouble with Net::SSH::Perl

by duct_tape (Hermit)
on Dec 28, 2003 at 18:44 UTC ( #317315=note: print w/replies, xml ) Need Help??


in reply to Trouble with Net::SSH::Perl

cmd takes an optional second argument that is a string that contains stdin. Perhaps that will work for you? I haven't tested this, but I thought i'd throw out the possibility since there are not any other replies.

$stdin = "first name\n"; $stdin .= "middle name\n"; $stdin .= "last name\n"; ($out, $err, $exit) = $ssh->cmd($cmd, $stdin);

Brad

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2019-09-19 06:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The room is dark, and your next move is ...












    Results (240 votes). Check out past polls.

    Notices?