When trying to get expect to do a fork / disconnect, expect will hang (process goes "defunct") and not spawn a shell all the while "puts" statments will work within expect. The script will work on Solaris 9. Is there an expect / Debian patch? Maybe a work around? This is part of a multi session script.
if { [fork] != 0 } then exit
disconnect
set env(TERM) vt100
spawn $env(SHELL); match_max 100000; expect "$ "
Thnks,
if { [fork] != 0 } then exit
disconnect
set env(TERM) vt100
spawn $env(SHELL); match_max 100000; expect "$ "
Thnks,