Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

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.

Comment on Re^5: Dialog with UNIX shell
Select or Download Code

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 examining the Monastery: (7)
As of 2015-11-30 07:57 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (765 votes), past polls