I run scripts that take hours to complete in the background using nohup
, so that they continue to run after I disconnect. For example nohup julia myscript.jl &> logfile.txt &
. This works fine when I'm connected to the compute server over plain ssh. But if I do this when connected using VSCode RemoteSSH extension, the julia process dies soon after I close VSCode.
How can I put a process in the background from VSCode RemoteSSH terminal, so that it keeps running in the background even after I close VSCode?