[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

expect upgrade has broken my scripts



#!/usr/bin/expect
 
set timeout 40
spawn ssh [lrange $argv 0 0]
expect "$"
send "exec su -\n"
expect "Password: "
send "$env(ROOTPW)\n"
expect "#"
send "exec bash\n"
expect "#"
interact

The above is one of my scripts.  When it reaches "interact" I want all IO to
be sent through directly with no delay as the old version did.  It seems that
the functionality of expect has changed, how do I now make it access a
character at a time?



Russell Coker



Reply to: