modifying parent's environment, etc.

Blair P. Houghton bph at buengc.BU.EDU
Wed Apr 26 17:16:26 AEST 1989


In article <8634 at xanth.cs.odu.edu> kremer at 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



More information about the Comp.lang.c mailing list