[Gate-users] Continue Gate or Geant4 Program after close the terminal

Maxime Chauvin maxime.chauvin at inserm.fr
Thu Apr 5 10:14:18 CEST 2018

Dear Mery,

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.

Kind regards,

> 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?
> Best 
> Mery
> _______________________________________________
> Gate-users mailing list
> Gate-users at lists.opengatecollaboration.org
> http://lists.opengatecollaboration.org/mailman/listinfo/gate-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20180405/c5d0bbcf/attachment.html>

More information about the Gate-users mailing list