[comp.sys.sgi] Using wsh as a child process

conley@kuhub.cc.ukans.edu (05/28/90)

I would like to run wsh as a child process ( via fork, exec ), and connect
the two processes with pipes so as to perform some text operations using
the wsh window. The fork and exec succeed, but the system appears to make
the resulting wsh a child of init instead of my parent process. Is it
fair to assume that my idea won't work, or am I doing something wrong?

Thanks in advance,

	drc

kipp@warp.esd.sgi.com (Kipp Hickman) (05/29/90)

You need to keep wsh from forking and going into the background, as is its
default behaviour.  To do this, run wsh with the "-Z1" flag.

					kipp hickman
					silicon graphics inc.