Hi all I'm using FreeBSD 7.0. As per FAQ, http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/admin.html, I tried to increase the number of ptys: "10.19.1 Build and install a new kernel with the line in the configuration file: device pty N where N is the number of requested pseudoterminals." I tried to recompile the kernel. I have modified the GENERIC as follows: device pty 64 # Pseudo-ttys (telnet etc) This results a compilation error: config: /usr/src/sys/i386/conf/GENERIC:268: syntax error *** Error code 1 What is the correct syntax? Kind Regards Unga
iirc pty is totally dynamic in 7 and doesn't require any special tweaks. Regards Steve ----- Original Message ----- From: "Unga" <unga888@yahoo.com> To: <freebsd-stable@freebsd.org> Sent: Saturday, July 19, 2008 2:38 AM Subject: Pseudoterminals increase: compilation error> Hi all > > I'm using FreeBSD 7.0. > > As per FAQ, http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/admin.html, I tried to increase the number of ptys: > "10.19.1 > Build and install a new kernel with the line in the > configuration file: > device pty N > where N is the number of requested pseudoterminals." > > I tried to recompile the kernel. I have modified the GENERIC as follows: > device pty 64 # Pseudo-ttys (telnet etc) > > This results a compilation error: > config: /usr/src/sys/i386/conf/GENERIC:268: syntax error > *** Error code 1 > > What is the correct syntax? > > Kind Regards > Unga > > > > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" >===============================================This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. In the event of misdirection, illegible or incomplete transmission please telephone +44 845 868 1337 or return the E.mail to postmaster@multiplay.co.uk.
On 2008-Jul-18 18:38:36 -0700, Unga <unga888@yahoo.com> wrote:>As per FAQ, http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/admin.html, I tried to increase the number of ptys: > "10.19.1 > Build and install a new kernel with the line in the > configuration file: > device pty N > where N is the number of requested pseudoterminals."That has been obsolete for a while. Do you actually have a problem with insufficient PTYs? -- Peter Jeremy Please excuse any delays as the result of my ISP's inability to implement an MTA that is either RFC2821-compliant or matches their claimed behaviour. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 195 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20080719/c8d533be/attachment.pgp
--- On Sat, 7/19/08, Peter Jeremy <peterjeremy@optushome.com.au> wrote:> From: Peter Jeremy <peterjeremy@optushome.com.au> > Subject: Re: Pseudoterminals increase: compilation error > To: "Unga" <unga888@yahoo.com> > Cc: freebsd-stable@freebsd.org > Date: Saturday, July 19, 2008, 8:04 PM > On 2008-Jul-18 18:38:36 -0700, Unga > <unga888@yahoo.com> wrote: > >As per FAQ, > http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/admin.html, > I tried to increase the number of ptys: > > "10.19.1 > > Build and install a new kernel with the line in the > > configuration file: > > device pty N > > where N is the number of requested > pseudoterminals." > > That has been obsolete for a while. Do you actually have a > problem > with insufficient PTYs? >Looks like, may not be. The Problem: expect -c "spawn ls" spawn ls The system has no more ptys. Ask your system administrator to create more. while executing "spawn ls" It now seems to be a permission problem as explained in http://expect.nist.gov/FAQ.html#q67 . Still investigating. Any help will be very much appreciated. Unga