I am wanting to background a long running script, which I know I can do using the following:
nohup ./install.sh &>/dev/null &
However, I also realize that if I leave that session, I can no longer see it running using job
, since it would be running on another session if I login and then log back in.
My question is, before I run a script in the background, is there a way I can set it up so that I can return/foreground that script later? Even after I have logged out and then back in?