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

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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://627641]
help
Chatterbox?
[stevieb]: ahhh yes, it *is* a ref. I had forgotten that. I too have learned something. I quit too!!
[marioroy]: Is List::Util::XS a core Perl module?
[stevieb]: corelist List::Util::XS says "List::Util::XS was first released with perl v5.10.1"
[stevieb]: so yes, since v5.10.1 :)
[MidLifeXis]: According to [metaperl:// corelist], Perl 5.10.1
Lady_Aleena blurbles. One of her favorite modiles is now in "maintenance mode" in favor of a new fangled module.
[MidLifeXis]: D'oh. Slow out of the gate.
[marioroy]: Thanks stevieb, MidLifeXis.

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (13)
As of 2017-05-24 17:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?