Sample Header Ad - 728x90

change environment of a running process

51 votes
3 answers
48345 views
How might it be possible to alter some variable in the env of an already running process, for example through /proc/PID/environ? That "file" is read-only. Need to change or unset the DISPLAY variable of a long-running batch job without killing it.
Asked by Marcos (2353 rep)
May 9, 2012, 09:02 AM
Last activity: Jul 18, 2025, 12:26 PM