I want to set a name to the child process spawned by subprocess module.
subprocess.Popen(["ls"])
spawns child process named ls
, but I want to set a custom name of the process. For example, if I open top
instead of process showed by name ls
, it will be showed by custom name e.g. list-all-files
set by me. How can I do that by using subprocess module or any other way?