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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to exit cygwin expect script where rlogin spawned

Status
Not open for further replies.

dans45

Technical User
Feb 13, 2003
43
US
I've got little experience with cygwin and expect scripts. I am calling my expect script from a rexx script in w2k. The expect script rlogin's to another system and after executing the original script executes to completion but the command window it runs in never closes. I found that the rlogin.exe process is still running. If I rlogin like this..
spawn rlogin $myIPaddress
set save_spawnid $spawn_id
...
what can I do to get rlogin to exit when the program ends?
Could you write a the statement so I can more easily understand it.
Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top