I use Python, for what it costs, but will accept answers in any applicable language.
I tried writing in /proc/$pid/cmdline, but this is only a readonly file.
I tried to assign a new line sys.argv[0], but this has no tangible effect.
Are there any other options? My program runs processes through os.system(equivalently system(3)), so the general * NIX solution using the optional spawning process will be fine.
source
share