Re: qsub

From: Brian Bennion (brian_at_youkai.llnl.gov)
Date: Tue Jan 25 2005 - 10:11:54 CST

Hello,

You need the "expr" shell command to do arithmetic. Something like
l1= expr ' $l1-1'
is needed in the script

Brian

On Tue, 25 Jan 2005, Swarna Patra wrote:

>
> Hi
> can any one tell me what is wrong in my script...when I submit the job it
> run once and stops even though l value is <5.
>
> !/bin/bash
> #PBS -P f91
> #PBS -q express
> #PBS -l walltime=01:00:00
> #PBS -l vmem=600MB
> #PBS -l ncpus=4
> #PBS -l software=namd
> #PBS -l other=mpi
> #PBS -wd
>
> USE_NAMD=1;export USE_NAMD
> USE_DOT=1;export USE_DOT
> . /opt/etc/system_profile
>
> #-------------------------------------------------------------------
> # Please add your commands after the last line:
> #-------------------------------------------------------------------
> # - Environment variables for program execution
> # - change this line if running an OpenMP program
> config
> l1="$(cat counter)"
> prun namd2 ./smd.kcsa.conf > out_ext_cav1/log.$l1
> l=$((l1-1))
> while [ $l -lt 5 ]; do
> qsub jbscrpt1
> echo $l >>t1
> done
>

*****************************************************************
**Brian Bennion, Ph.D. **
**Computational and Systems Biology Division **
**Biology and Biotechnology Research Program **
**Lawrence Livermore National Laboratory **
**P.O. Box 808, L-448 bennion1_at_llnl.gov **
**7000 East Avenue phone: (925) 422-5722 **
**Livermore, CA 94550 fax: (925) 424-6605 **
*****************************************************************

This archive was generated by hypermail 2.1.6 : Wed Feb 29 2012 - 05:18:34 CST