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

Problems with "expect" script

Status
Not open for further replies.

lorel

MIS
Jun 15, 2004
158
I have an Expect script that logs in a user to our application running on SCO UNIX 5.0.7.
We have this script working fine in most of our clients. We have a client were this scrip used to work but the last 2 weeks, when we run the script, it fails with the message "invalid spawn id(4)"
I have checked the code of this script with another server were the script works with no problems and it is identical, it has not changed from the time were it used to work.

Can anyone has any ideas what could be causing this?

Again thanks for any help given.

Joe
 
I suggest you post the question in the Tcl/Tk forum (expect is an extension of the Tcl language), you may have more luck there.

Annihilannic.
 
Thanks, I will follow your advise

Joe
 
Check the patch level of SCO via custom. If the patch level is the same as the other machines, try upgrading to the very latest patch (mp5), or re-installing mp5 if it is already at mp5. Finally, check the script - is it the EXACT same size as the version at the other clients? Sometimes you see some weirdness in scripts if they were transferred using FTP from a windows machine - which will default to text mode and helpfully add extra CR's after every LF, which can cause problems with if/then/else logic if the CR is splitting logical lines up.

----------------------------------------------------------------
Pat Welch, UBB Computer Services, a WCS Affiliate
SCO Authorized Partner
Microlite BackupEdge Certified Reseller
Unix/Linux/Windows/Hardware Sales/Support
(209) 745-1401 Cell: (209) 251-9120
E-mail: patubb@inreach.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top