home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!darwin.sura.net!mips!pacbell.com!att!bu.edu!news.bbn.com!mips2!rws1!mwarren
- From: mwarren@rws1.ma30.bull.com (Mark Warren)
- Newsgroups: bull.sys.aix,comp.unix.aix
- Subject: Changing name associated with a process
- Message-ID: <mwarren.711724488@rws1>
- Date: 21 Jul 92 13:14:48 GMT
- Sender: news@mips2.ma30.bull.com (Usenet News Manager)
- Organization: Bull HN Informations Systems Inc.
- Lines: 32
-
- We have a single executable ("foo" for the sake of discussion), which
- forks several children, each of which has a different purpose. I'd
- like to change the name that is shown by 'ps' for each of these, so
- that the 'ps' command display can give some hint of what they are
- really doing.
-
- For example, currently wee have ps output like
-
- PID TTY TIME CMD
- 10023 pts/0 0:00 -ksh
- 19257 pts/0 0:00 foo
- 19514 pts/0 0:00 foo
- 19771 pts/0 0:00 foo
- 20542 pts/0 0:00 foo
- 21313 pts/0 0:00 ps
-
- and what I'd like to see is
-
- PID TTY TIME CMD
- 10023 pts/0 0:00 -ksh
- 19257 pts/0 0:00 foo_main
- 19514 pts/0 0:00 foo_quack
- 19771 pts/0 0:00 foo_oink
- 20542 pts/0 0:00 foo_bark
- 21313 pts/0 0:00 ps
-
- This is easy in BSD, but I can't see how to do it in AIX. Any hints?
- --
-
- == Mark Warren Bull HN Information Systems Inc. ==
- == (508) 294-3171 (FAX 294-3705) 300 Concord Road MA30/MS833A ==
- == M.Warren@bull.com Billerica, MA 01821 ==
-