[gmx-users] running in background?

Karsten Suhre Karsten.Suhre at igs.cnrs-mrs.fr
Fri Apr 16 09:48:01 CEST 2004


> > How is it possible to put a simulation running in the
> > "background" so that the job continues running
> > after closin' the command shell/loggin' off?
>
> Under Linux I use 'nohup' which lets a command ignore hangup signals
> (which are emitted by the shell on logout), and redirect all terminal
> output into a file (which I delete after the job has completed).
>
> (b)ash:
>
>   nohup mdrun [options] >output.log  2>&1 &
>
> (t)csh:
>
>   nohup mdrun [options] >& output.log &

If you start you nohup via ssh this may hang your shell. In such cases you may 
try the following:

prompt> at now -f script.sh

and put a command like

   mdrun [options] >output.log  2>&1 

into the file script.sh

Kind regards,

Karsten.



More information about the gromacs.org_gmx-users mailing list