Another way (maybe equivalent to nohup?) is to put the "wait" command at
the end of the script.
On Mon, Nov 28, 2011 at 1:16 PM, Ross Walker <ross.rosswalker.co.uk> wrote:
> Hi Leila,
>
> Try:
>
> nohup mpirun -np 2 $AMBERHOME/exe/sander.MPI -ng 2 -groupfile
> model_step1.group </dev/null &
>
> A lot of mpi implementations require you to redirect standard in from dev
> null when running in the background. You also need the nohup in the front
> so
> the job doesn't quit when you close the shell.
>
> All the best
> Ross
>
> > -----Original Message-----
> > From: leila karami [mailto:karami.leila1.gmail.com]
> > Sent: Sunday, November 27, 2011 3:30 AM
> > To: amber
> > Subject: [AMBER] running of the sander in background in parallel state
> >
> > Dear amber users
> >
> > I study TUTORIAL A6.
> >
> > I want to do section of [mpirun -np 2 $AMBERHOME/exe/sander.MPI -ng 2
> > -groupfile model_step1.group] in background.
> >
> >
> > I know, in serial state of amber,
> >
> > The ampersand will background the job. for example
> >
> > $AMBERHOME/exe/sander -O -i min.in -o min_protein.out -p
> > protein.prmtop -c protein.inpcrd -r protein_min.crd &
> >
> > I did 2 states:
> >
> > 1) mpirun -np 2 $AMBERHOME/exe/sander.MPI -ng 2 -groupfile
> > model_step1.group &
> >
> > 2) in model_step1.group file, I put & in the end
> >
> > unfortunately, none of them were not true.
> >
> > please guide me about that.
> >
> > best regards.
> >
> > _______________________________________________
> > AMBER mailing list
> > AMBER.ambermd.org
> > http://lists.ambermd.org/mailman/listinfo/amber
>
>
> _______________________________________________
> AMBER mailing list
> AMBER.ambermd.org
> http://lists.ambermd.org/mailman/listinfo/amber
>
--
================================ Current Address =======================
Brian Radak : BioMaPS
Institute for Quantitative Biology
PhD candidate - York Research Group : Rutgers, The State
University of New Jersey
University of Minnesota - Twin Cities : Wright-Rieman Hall 101
Graduate Program in Chemical Physics : 610 Taylor Road,
Department of Chemistry : Piscataway, NJ
08854-8066
radak004.umn.edu :
radakb.biomaps.rutgers.edu
====================================================================
Sorry for the multiple e-mail addresses, just use the institute appropriate
address.
_______________________________________________
AMBER mailing list
AMBER.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber
Received on Mon Nov 28 2011 - 14:30:03 PST