faqts : Computers : Programming : Languages : Python

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

17 of 48 people (35%) answered Yes
Recently 5 of 10 people (50%) answered Yes

Entry

How do I change the name of a process (as viewed by 'ps') from Python?

Oct 11th, 2000 05:10
unknown unknown, Adam Feuer, Oleg Broytmann


Don't know much about Mac. Probably, there is no such thing as "process
name". :)
On Windows, it is possible, and I saw a code doing that. Probably, Mark
Hammond was the author, if I remember it right.
On UNIX it is impossible now. To do this, someone will need to wrap one
of "setproctitle" sources. The most known code is "setproctitle" from
sendmail, but it accompanied with not-so-free license. More liberal 
license is for similar code in PostgreSQL, so if anyone is interested to 
do some work and produce a working module - PostgreSQL is a good place 
to start.