Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re^5: Dialog with UNIX shell

by ikegami (Pope)
on Jul 19, 2007 at 21:41 UTC ( #627641=note: print w/replies, xml ) Need Help??

in reply to Re^4: Dialog with UNIX shell
in thread Dialog with UNIX shell

You need something like IPC::Open2 instead of qx() since you want 2-way communication with ssh. qx() only allows to receive from the child process.

That said, you're probably better off using Expect and let it worry about the nitty gritty parent-child communication details.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2016-10-24 00:03 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (302 votes). Check out past polls.