Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uflorida!ukma!tut.cis.ohio-state.edu!rutgers!att!cbnews!r4 From: r4@cbnews.ATT.COM (richard.r.grady..jr) Newsgroups: comp.lang.c Subject: Re: modifying parent's environment, etc. Message-ID: <6062@cbnews.ATT.COM> Date: 28 Apr 89 22:16:38 GMT References: <2158@pur-phy> Reply-To: r4@cbnews.ATT.COM (richard.r.grady..jr) Organization: AT&T Bell Laboratories Lines: 15 In article <2158@pur-phy> sho@newton.physics.purdue.edu.UUCP (Sho Kuwamoto) writes: - This thread got me to thinking. I wrote a quickie program which, - for reasons I don't need to go into now, modified argv[i]. The - strangest thing happened: if you run it in the background and look - at it using ps, the line where it tells you what you typed in as - your command line changes. I'm interested to know if this works - on all versions of UNIX. Compile the following, run it in the - background, and do a PS. Over here, we are running BSD 4.3. We're running AT&T SVR2 here, and it doesn't work on our machine. I already tried it a couple of months ago. (I wanted to use the ps command to monitor the progress of a long-running program started by cron.) Dick Grady r4@mvuxd.att.com ...!att!mvuxd!r4