I need to run a java program on my university servers. I'm remotely logging in through their servers via ssh
So I used nohup like so:
nohup java -jar project.jar &
However when I logout and close the terminal then log back into the server my process is missing/got killed off.
stdout
andstderr
to some files - your process may be killed by signal other than SIGHUP, when trying to write to a closed terminalstdout
/stderr
. E.g. add>/dev/null 2>&1
to your command before&
job sign.nohup
- most implementations will do this by default although it may be necessary to redirectstdin
eg</dev/null
.