Tuesday, January 29, 2013

How to disown a Background Linux Process



Have you ever started a script in the background (using &) and then wanted to close your session but didn't want to kill the background process?  Disown it.  It's kinda like using nohup, which is probably what you wanted to do in the first place.

Get the Job Number
jobs

Disown the Job
disown %<job#>

close the window and go home!

No comments:

Post a Comment