Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > ruby expect no interact ?

Reply
Thread Tools

ruby expect no interact ?

 
 
Une Bévue
Guest
Posts: n/a
 
      07-05-2011
i don't see any interact example within ruby expect; is this not
implemented yet ?

ie to mimic :

#!/sw/bin/expect -f

spawn ssh -6 mfj@Gericom
expect "Password: "
send "THE password\n"
expect "imyt-2-% "
interact {
\003 {send_user "exiting, bye!\n";send "exit\n";exit}
}

here i open an SSH connexion and leave the user, me, do what he want
until he pressed CTRL C to exit.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can Ruby interact with the shell sh ? Raimon Fs Ruby 11 02-25-2009 06:04 PM
interact with Ruby via command prompt window dynamically Li Chen Ruby 1 10-16-2007 05:49 PM
how to expect eof with expect+pty Simon Strandgaard Ruby 4 12-20-2006 04:00 PM
How can I get Ruby interact with my C++ program? Dong Wang Ruby 0 11-08-2006 05:11 AM
Bug in $obj->expect() ... ? (Expect 1.15) Phil Perl Misc 0 07-07-2006 07:25 AM



Advertisments