home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / aix / 8058 < prev    next >
Encoding:
Text File  |  1992-07-22  |  1.1 KB  |  37 lines

  1. Newsgroups: bull.sys.aix,comp.unix.aix
  2. Path: sparky!uunet!elroy.jpl.nasa.gov!usc!news.bbn.com!mips2!rws1!mwarren
  3. From: mwarren@rws1.ma30.bull.com (Mark Warren)
  4. Subject: Re: Changing name associated with a process
  5. Organization: Bull HN Informations Systems Inc.
  6. Date: 22 Jul 92 14:55:03 GMT
  7. Message-ID: <mwarren.711816903@rws1>
  8. References: <mwarren.711724488@rws1>
  9. Sender: news@mips2.ma30.bull.com (Usenet News Manager)
  10. Lines: 25
  11.  
  12. A few people replied to me, and the answer is even easier than BSD.
  13. The following program does exactly what it appears to do:
  14.  
  15. main(ac, av)
  16. int     ac;
  17. char     *av[];
  18. {
  19.     av[0] = "new name";
  20.     sleep(60);
  21. }
  22.  
  23. If you run this in the background, and type "ps", it sez:
  24.  
  25.    PID    TTY  TIME CMD
  26.  16753  pts/0  0:00 ps
  27.  19814  pts/0  0:00 -ksh
  28.  20848  pts/0  0:00 new name
  29.  
  30. I'm surprised that this works.  Will it continue to work in later
  31. revisions of BOS/X?
  32. --
  33.  
  34.  == Mark Warren                      Bull HN Information Systems Inc. ==
  35.  == (508) 294-3171 (FAX 294-3705)    300 Concord Road   MA30/MS833A   ==
  36.  == M.Warren@bull.com                Billerica, MA 01821              ==
  37.