Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Expect used with Debian

Status
Not open for further replies.

jhahs

Technical User
Oct 19, 2004
29
US
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,
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top