How do I rename a process on Linux?
Posted
by jemfinch
on Stack Overflow
See other posts from Stack Overflow
or by jemfinch
Published on 2010-05-25T19:28:59Z
Indexed on
2010/05/25
19:31 UTC
Read the original article
Hit count: 202
I'm using Python, for what it's worth, but will accept answers in any applicable language.
I've tried writing to /proc/$pid/cmdline
, but that's a readonly file.
I've tried assigning a new string to sys.argv[0]
, but that has no perceptible impact.
Are there any other possibilities? My program is executing processes via os.system
(equivalent to system(3)
) so a general, *NIX-based solution using an additional spawning process would be fine.
© Stack Overflow or respective owner