[comp.windows.x] Can I fork/exec Xterm and prevent a getty

ginsburg@ginosko.samsung.com (Scott Ginsburg) (09/20/89)

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?


							Thanks,
							Scott

-- 
------------------------------------------------------------------------- 
Scott Ginsburg WA2CJT	  Voice: 508-685-7200  FAX: 508-685-4940
Samsung Software America  Internet: ginsburg@samsung.com
Andover, MA

ehrlich@cs.psu.edu (Daniel Ehrlich) (09/21/89)

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 <ehrlich@cs.psu.edu>   | "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