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.
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.