[Gate-users] Continue Gate or Geant4 Program after close the terminal
maxime.chauvin at inserm.fr
Thu Apr 5 10:14:18 CEST 2018
GATE like any other program launched in a terminal will be kill if it receives some specific signal like SIGHUP (signal hang up) sent when you close a terminal.
If you want your program to continue even if you close the terminal, you just need to disregard the signal SIGHUP when you launch GATE (or any other program). To do this you can simply use the command nohup (no hang up):
nohup Gate main.mac &
I recommend also redirecting the standard output and error to a log file so you can see what happened during the execution:
nohup Gate main.mac > out.log 2>&1 &
You can use this on your computer as well as on a server over ssh.
> On 5 Apr 2018, at 09:02, Mery MB <mery.mb.mph at gmail.com> wrote:
> Dear Gate User
> Is there any way to continue the Gate programs after closing the terminal with any reason?
> Gate-users mailing list
> Gate-users at lists.opengatecollaboration.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Gate-users