Ravi Sir's Cards › AWS
Job dies when SSH closes?
This interview card answers: Job dies when SSH closes? Shell sends SIGHUP. Use nohup. Or a screen session.
Read card text
What this card says
What it is
Shell sends SIGHUP.
Why it matters
Use nohup.
nohup ./job.sh > job.log 2>&1 &
How / example
Or a screen session.
screen -S job