From: Bruce Woodward Date: 2006-04-11T07:12:54+09:00 Subject: Re: Strange problem with PTY.spawn() ------=_Part_10261_4218268.1144707170577 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Reto, Looking at ruby-1.8.4/ext/pty/pty.c, line 351. To get the runtime error "can't get Master/Slave device" the opening on /dev/ptmx is failing. Do you have the file /dev/ptmx? On a Solaris 8 system here I have; # uname -a SunOS camsapc 5.8 Generic_117350-18 sun4u sparc SUNW,Ultra-Enterprise-10000 # ls -l /dev/ptmx lrwxrwxrwx 1 root root 30 Apr 16 2005 /dev/ptmx -> ../devices/pseudo/clone@0:ptmx # ls -lL /dev/ptmx crw-rw-rw- 1 root sys 11, 23 Feb 19 2002 /dev/ptmx good luck. Bruce. On 4/10/06, Reto Schuettel wrote: > > Hi > > I've some troubles using PTY on a Solais 8 System: > > | $ ruby1.8 -rpty -e 'PTY.spawn("/bin/telnet testsite1"); ' > | -e:1:in `spawn': can't get Master/Slave device (RuntimeError) > | from -e:1 > > The system: > | $ uname -a > | SunOS hostname 5.8 Generic_108528-29 sun4u sparc SUNW,Sun-Fire-280R > > Ruby: > | $ ruby1.8 -v > | ruby 1.8.4 (2005-12-24) [sparc-solaris2.8] > > Everything works as it should with a old version of ruby: > | $ ruby -v > | ruby 1.6.8 (2002-12-24) [sparc-solaris2.8] > > I've attached the output of truss. Please let me know if more > information is needed. > > Can anybody help me with this? I have no idea how I could fix/avoid this > problem. > > Cheers, > Reto Schuettel > > ------=_Part_10261_4218268.1144707170577--