Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!brutus.cs.uiuc.edu!psuvax1!psuvax1!ehrlich From: ehrlich@cs.psu.edu (Daniel Ehrlich) Newsgroups: comp.windows.x Subject: Re: Can I fork/exec Xterm and prevent a getty()? Message-ID: Date: 20 Sep 89 19:22:53 GMT References: <3609@ginosko.samsung.com> Sender: news@psuvax1.cs.psu.edu Organization: Computer Science Department, Penn State University Lines: 18 In-Reply-To: ginsburg@ginosko.samsung.com's message of 19 Sep 89 18:06:34 GMT In article <3609@ginosko.samsung.com> ginsburg@ginosko.samsung.com (Scott Ginsburg) writes: I'm a new X user and am doing some experimenting with xterm. I would like to be able to fork/exec an xterm that runs a program in that window, and, I want to force the xterm's stdin to be from a pipe descriptor that I dup2'ed before I exec. The problem is that xterm does a getty() and wipes out my stdin plumbing. How do I accomplish what I want to do? Under X11R3 there is a program called xdm which can be used instead of getty. There is also a way to use xinit in place of getty from the /etc/ttytab file. Check the manual pages for both xdm and xinit. -- Dan Ehrlich | "A message is not a message until the The Pennsylvania State University | rules for interpreting it are in the Department of Computer Science | hands of the reciever." University Park, PA 16802 | --Apollo Belvedere Smith