Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!purdue!bu-cs!buengc!bph From: bph@buengc.BU.EDU (Blair P. Houghton) Newsgroups: comp.lang.c Subject: Re: modifying parent's environment, etc. Message-ID: <2674@buengc.BU.EDU> Date: 26 Apr 89 07:16:26 GMT References: <2158@pur-phy> <1494@vsedev.VSE.COM> <8634@xanth.cs.odu.edu> Reply-To: bph@buengc.bu.edu (Blair P. Houghton) Followup-To: comp.lang.c Organization: Boston Univ. Col. of Eng. Lines: 19 In article <8634@xanth.cs.odu.edu> kremer@cs.odu.edu (Lloyd Kremer) writes: > > > >Yes, in System V, writing to argv[] doesn't change ps's opinion of what the >original args were. You must use some form of the exec() call to change the >contents of the u_area. The following should work: > >Do a 'ps -f' from the child shell and see what you get. I did. I got "unknown switch f" (running Umax, dont'chaknow) and an otherwise ordinary ps-listing that gave me the name, pid, etc. of the program just as I had named it. AND, it's odd to have your prompt go different alluvasudden. Try again. --Blair