nohup after the fact
The following script for Linux (change
/proc/$PID/exe for other platforms) allows an already running command-line program to be put in a state as if run by nohup.
This hack can be useful when the controlling shell is not available (e.g. the X server is frozen or you…