I have a problem running Gaussian on remote Linux via SecureCRT on Windows.
Gaussian
Gaussian spawns different child executables ("link"s) when running. For example, I start Gaussian by running nohup g09 < test.in > test.out 2> test.out &, and g09 will spawns different links such as l301.exe and l502.exe at specific circumstances.
Run Gaussian
When I connect to the remote Linux box, and run Gaussian using nohup ${Path_Of_Gaussian}/g09 < jobname.in > jobname.out 2> jobname.out &:
If I exit the shell by typing
exitand press Enter, I can exit while Gaussian on Linux keeps running (name of the specific executable depends on specific timing).If I power down the computer (then the SecureCRT will be shutdown), Gaussian on Linux gets killed and complains "hang up".
If I exit by typing
exitand press Enter, and then log on, I can power down the computer and Gaussian on Linux keeps running.jlliagre's answer does not work in this case.
Run simple command
Taken a simple executable, which does nothing (i.e., deals nothing with input & output) but sleeps for 10 minutes, for example. When I run it by nohup ${Path_Of_Executable}/executable &:
If I exit the shell by typing
exitand press Enter, I can exit and the executable keeps running on Linux.If I power down the computer (then the SecureCRT will be shutdown), the executable running on Linux gets killed.
If I exit by typing
exitand press Enter, and then log on, I can power down the computer (then the SecureCRT will be shutdown) and the executable on Linux keeps running.As in
jlliagre's knowledgeable answer, if I runnohup ${Path_Of_Executable}/executable </dev/null >/dev/null 2>&1 &, I can power down while the executable on Linux keeps running.
In other words, why would Gaussian, which is run on a remote machine with nohup, get killed when the local computer is powered down before the shell is exited?