ruby expect no interact ?

U

Une Bévue

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,186
Members
46,740
Latest member
JudsonFrie

Latest Threads

Top