setproctitle is a library to allow customization of the process title.
安装:
sudo easy_install setproctitle
使用:
from setproctitle import setproctitle,getproctitle
procname = 'pname'
setproctitle(procname )
print getproctitle ()
i = raw_input ('input-->')
在运行时候查看系统进程,能看到pname进程。