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!

Using a /dev/ptc on WindowsXP using Expect

Status
Not open for further replies.

11a21a31a

Programmer
Jun 16, 2003
2
JP
I am using Expect library with the TCL/TK interface on the Unix IRIX systems. I have ported this code using MKS Nutcracker tool to WindowsXP. While tryig to run a command like "spawn ls", the expect library gives an error saying, "The system has no more ptys. Ask your system administrator to create more". I checked this error string in the code and found that it's coming as the code is failing to open "/dev/ptc" on the WindowsXP machine. Could someone suggest suggest how to resolves this problem.
 
Thanks for the tip, but I have already checked it out. His version of Expect is supported for TCL 8.0 only, but I am using TCL 7.6, so can't use his port. Though I also tried a couple of other things meanwhile: I replaced the "/dev/ptc" by "/dev/null" and it works, but it's very unstable and gives "sync byte write" or a broken "pipe error" after a couple of spawns or sometimes in the first spawn command. I also tried to create a pipe ans use, that also suffers from the same problem. So the problem is still open for me .. :)
 
I doubt you will get any help with this topic. Expect for
windows in any shape,form or facsimile thereof is not
a trivial project and none of the tclers at comp.lang.tcl
will touch it.
David Gravereaux was the last.
You could post to comp.lang.tcl and see if he has any suggestions.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top