home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: bull.sys.aix,comp.unix.aix
- Path: sparky!uunet!elroy.jpl.nasa.gov!usc!news.bbn.com!mips2!rws1!mwarren
- From: mwarren@rws1.ma30.bull.com (Mark Warren)
- Subject: Re: Changing name associated with a process
- Organization: Bull HN Informations Systems Inc.
- Date: 22 Jul 92 14:55:03 GMT
- Message-ID: <mwarren.711816903@rws1>
- References: <mwarren.711724488@rws1>
- Sender: news@mips2.ma30.bull.com (Usenet News Manager)
- Lines: 25
-
- A few people replied to me, and the answer is even easier than BSD.
- The following program does exactly what it appears to do:
-
- main(ac, av)
- int ac;
- char *av[];
- {
- av[0] = "new name";
- sleep(60);
- }
-
- If you run this in the background, and type "ps", it sez:
-
- PID TTY TIME CMD
- 16753 pts/0 0:00 ps
- 19814 pts/0 0:00 -ksh
- 20848 pts/0 0:00 new name
-
- I'm surprised that this works. Will it continue to work in later
- revisions of BOS/X?
- --
-
- == 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 ==
-