Is there a way to change the name of a process running a python script on Linux?
When I do a ps
, all I get are "python" process names.
Is there a way to change the name of a process running a python script on Linux?
When I do a ps
, all I get are "python" process names.
http://code.google.com/p/procname/
Sample usage:
# Lets rename:
>>> procname.setprocname('My super name')
# Lets check. Press Ctrl+Z
user@comp:~/procname$ ps
PID TTY TIME CMD
13016 pts/2 00:00:00 bash
13128 pts/2 00:00:00 My super name <-- it's here