So I recently had to execute a long running job on a bash shell,
however none of my usual tools like nohup, screen or tmux were available so below is the method I used to make sure I can start the job and disconnect the session.
however none of my usual tools like nohup, screen or tmux were available so below is the method I used to make sure I can start the job and disconnect the session.
- run the job in bash
- whilst running press ctrl-z (this will suspend the current foreground job (task) )
- enter the job control command bg to add it as a background task
- then remove the job from the shell's job list disown -h
- exit
No comments:
Post a Comment