Re: [AMBER] script to run background job?

From: Hai Nguyen <nhai.qn.gmail.com>
Date: Mon, 30 Jan 2017 11:34:10 -0500

On Mon, Jan 30, 2017 at 11:31 AM, Michael Shokhen <michael.shokhen.biu.ac.il
> wrote:

> Dear Amber experts,
>
>
> The following script well works for running sequential jobs in foreground.
>



> & in the end of the command is not allowed in the script.
>
>
Your system admin does not allow you to use "&"?

Hai


> What changes and corrections should be added to the script to run job
> in the background?
>
>
> Thank you,
>
> Michael
>
>
> set MDINPUT=0
>
> echo -n "Starting Script at: "
> date
> echo ""
>
> while ( $MDCURRENTJOB <= $MDENDJOB )
> echo -n "Job $MDCURRENTJOB started at: "
> date
> . MDINPUT = $MDCURRENTJOB - 1
> nohup mpirun -np 2 $AMBERHOME/bin/pmemd.cuda.MPI -O -i prod.in \
> -o test_md$MDCURRENTJOB.out \
> -p ../ras-raf_solvated.prmtop \
> -c test_md$MDINPUT.rst \
> -r test_md$MDCURRENTJOB.rst \
> -x test_md$MDCURRENTJOB.mdcrd
> #gzip -9 -v a-dna_md$MDCURRENTJOB.mdcrd
> echo -n "Job $MDCURRENTJOB finished at: "
> date
> . MDCURRENTJOB = $MDCURRENTJOB + 1
> end
> echo "ALL DONE"
>
>
>
> _______________________________________________
> 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
Received on Mon Jan 30 2017 - 09:00:05 PST
Custom Search