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

From: Dan Penrod (dan_at_nortom.com)
Date: 09/26/03

  • Next message: david: "jumpstart error"
    Date: Fri, 26 Sep 2003 12:46:16 -0700
    To: sunmanagers@sunmanagers.org
    
    

    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


  • Next message: david: "jumpstart error"