[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [Semi-OT] Process *name* a valid concept in Unix/Linux?



 On 8/31/2010 9:26 PM, Ron Johnson wrote:
Hi,

I know that you can see a pid and it's complete command line, but is there the concept of "name"?

For example, in OpenVMS, you can do:
  $ SET PROCESS/NAME=SOMEUNIQUENAME

Then in SHOW SYSTEM (similar to "ps aux") you'll see a line with a pid and the text SOMEUNIQUENAME. Also, no other process can have the same name, thus performing a similar function as lock files.

Or, since fork() is so integral to Unix and processes keep flitting in an out of existence, is "name" not a relevant concept?

Thanks


setproctitle(3) which is from BSD will do that if I remember right. If I also recall correctly it was supposed to be implemented inside of Debian as libsetproctitle (you can google it and find the Wishlist bug) but never actually got implemented, read: http://www.freebsd.org/cgi/man.cgi?query=setproctitle&sektion=3


Reply to: