python processes names
Cameron Laird
claird at lairds.com
Mon Apr 5 10:07:05 EDT 2004
In article <ezdcc.188803$_w.1870414 at attbi_s53>,
djw <dwelch91 at comcast.net> wrote:
>Sylwia wrote:
>> Hi!
>>
>> How to make python programs show up by name is ps (e.g ps -e). By
>> default if we have many different python processes running
>> simultaneously, then we can only see python python python for three
>> different python processes. I would much rather see
>> first_python_program_name.py, second_python_program_name.py and
>> third_python_program_name.py listed by ps. Is that possible without
>> downloading and installing any non-standard modules?
>>
>> Thank you in advance,
>>
>> Best wishes,
>>
>> Sylwia
>
>You could use proctitle:
>
>https://ftp.psychosis.com:4302/python/
>
>-Don
Two points worth mentioning about proctitle:
1. "Proctitle is a Python2.X module to manipulate
the raw 'argv[]' contents of a python process."
2. It's pure-Python.
--
Cameron Laird <claird at phaseit.net>
Business: http://www.Phaseit.net
More information about the Python-list
mailing list