How to do a login shell right on Ultrix
brnstnd at stealth.acf.nyu.edu
brnstnd at stealth.acf.nyu.edu
Fri Apr 13 08:38:45 AEST 1990
In article <127 at minya.UUCP> jc at minya.UUCP (John Chambers) writes:
> What I have is an application that starts
> as a daemon (started by init, mostly, but also from a user's command)
> that must grab a serial port, do some fiddling around with it, and
> then possibly start up a shell (sh, csh, whatevera) that talks to
> the port. Sorta like telnetd, rshd, or the like, but on a real
> /dev/tty* port. Does anyone know the magic incantations to do it
> right?
It sounds like you should be using pseudo-terminals. If you pick up my
pty program you can just do, e.g., pty -d /bin/csh (-d meaning it's
detached in the first place, as from a daemon). I'm sending a new 'n'
improved version of pty to comp.sources.unix soon.
---Dan
More information about the Comp.unix.ultrix
mailing list