Expect script (v5.38.0) complains "...system has no more ptys. Ask your system administrator..."

From: Dan Penrod (dan@nortom.com)
Date: Fri Sep 26 2003 - 15:46:16 EDT


Trying to run the following script which changes passwords for the sudo
user.

  #!/usr/local/bin/expect

  spawn /usr/local/bin/sudo /bin/yppasswd [lindex $argv 0]
  set password [lindex $argv 1]
  expect "password:"
  send "$password\r"
  expect "password:"
  send "$password\r"
  expect eof

Here's my error messages...

spawn /usr/local/bin/sudo /bin/yppasswd temp3
The system has no more ptys. Ask your system administrator to create more.
   while executing
"spawn /usr/local/bin/sudo /bin/yppasswd [lindex $argv 0]"
   (file "./setpasswd" line 3)
updated netid
pushed netid

This was just ported from a Solaris 8 server where it worked but I can't
seem to get it running on my new Solaris 9 server. I've installed the
Expect (v5.38.0), Tk, and TCL packages. All from www.sunfreeware.com.
When that didn't work I downloaded, made and installed the source. Same
symptoms... no change. I have no idea what to try next. Solaris 9
should never run out of pty's and and I have no other symptoms of this
problem.

Any thoughts?

Thanks in advance,
- d a n

-=-
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:27:12 EDT