home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / aix / 8018 < prev    next >
Encoding:
Internet Message Format  |  1992-07-21  |  1.4 KB

  1. Path: sparky!uunet!darwin.sura.net!mips!pacbell.com!att!bu.edu!news.bbn.com!mips2!rws1!mwarren
  2. From: mwarren@rws1.ma30.bull.com (Mark Warren)
  3. Newsgroups: bull.sys.aix,comp.unix.aix
  4. Subject: Changing name associated with a process
  5. Message-ID: <mwarren.711724488@rws1>
  6. Date: 21 Jul 92 13:14:48 GMT
  7. Sender: news@mips2.ma30.bull.com (Usenet News Manager)
  8. Organization: Bull HN Informations Systems Inc.
  9. Lines: 32
  10.  
  11. We have a single executable ("foo" for the sake of discussion), which
  12. forks several children, each of which has a different purpose.  I'd
  13. like to change the name that is shown by 'ps' for each of these, so
  14. that the 'ps' command display can give some hint of what they are
  15. really doing.
  16.  
  17. For example, currently wee have ps output like
  18.  
  19.    PID    TTY  TIME CMD
  20.  10023  pts/0  0:00 -ksh
  21.  19257  pts/0  0:00 foo
  22.  19514  pts/0  0:00 foo
  23.  19771  pts/0  0:00 foo
  24.  20542  pts/0  0:00 foo
  25.  21313  pts/0  0:00 ps
  26.  
  27. and what I'd like to see is
  28.  
  29.    PID    TTY  TIME CMD
  30.  10023  pts/0  0:00 -ksh
  31.  19257  pts/0  0:00 foo_main
  32.  19514  pts/0  0:00 foo_quack
  33.  19771  pts/0  0:00 foo_oink
  34.  20542  pts/0  0:00 foo_bark
  35.  21313  pts/0  0:00 ps
  36.  
  37. This is easy in BSD, but I can't see how to do it in AIX.  Any hints?
  38. --
  39.  
  40.  == Mark Warren                      Bull HN Information Systems Inc. ==
  41.  == (508) 294-3171 (FAX 294-3705)    300 Concord Road   MA30/MS833A   ==
  42.  == M.Warren@bull.com                Billerica, MA 01821              ==
  43.