Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uunet!samsung!dali!uakari.primate.wisc.edu!zaphod.mps.ohio-state.edu!rpi!uupsi!cmcl2!stealth.acf.nyu.edu!brnstnd From: brnstnd@stealth.acf.nyu.edu Newsgroups: comp.unix.ultrix Subject: Re: How to do a login shell right on Ultrix Message-ID: <1036:Apr1222:38:4590@stealth.acf.nyu.edu> Date: 12 Apr 90 22:38:45 GMT References: <127@minya.UUCP> Reply-To: brnstnd@stealth.acf.nyu.edu (Dan Bernstein) Distribution: usa Organization: IR Lines: 15 In article <127@minya.UUCP> jc@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