Link Search Menu Expand Document

nohup Cheat Sheet


 nohup <command> &
 nohup <command> >/dev/null 2>&1     # to drop all output and avoid nohup.out


If the process dies on terminal close despite nohup, use disown

 nohup <command> &

You can check wether this is needed using

 nohup <command> &
 grep SigIgn /proc/$!/status

If the last bit of the SigIgn value bitmask is set then it is fine. Otherwise use disown.