[torqueusers] (no subject)
Brock Palen
brockp at umich.edu
Sat May 17 17:46:28 MDT 2008
Please post only to one list at a time. Thank You,
You can't have any spaces between NUM_NODES and the =
You have
NUM_NODES = `cat $PBS_NODEFILE | wc -l`
Should be:
NUM_NODES=`cat$PBS_NODEFILE | wc -l `
Brock Palen
www.umich.edu/~brockp
Center for Advanced Computing
brockp at umich.edu
(734)936-1985
On May 17, 2008, at 7:30 PM, chenyong wrote:
> Hello all,
>
> I have the following shell script for running with qsub/mpiexec
>
>
> #!/bin/bash
> #PBS - nodes=14:ppn=2
> #PBS -l walltime=99:00:00
> #PBS -j eo
> #PBS -N mpi
>
>
> ###change directory
> cd $PBS_O_WORKDIR
>
> NUM_NODES = `cat $PBS_NODEFILE | wc -l`
>
> cat $PBS_NODEFIL >& ./temp/outout
>
> echo $NUM_NODES >& ./temp/out2
>
>
>
> the statement
>
> echo $NUM_NODES >& ./temp/out2
>
> produce nothing in the file ./temp/out2.
>
> However, the file ./temp/outout has the following lines
>
> hpc01
> hpc02
> hpc03
> hpc04
>
> I do not know why
>
>
> please help.
>
>
> Felix
>
> “七件武器,七种完美” 立刻体验!
> _______________________________________________
> torqueusers mailing list
> torqueusers at supercluster.org
> http://www.supercluster.org/mailman/listinfo/torqueusers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.supercluster.org/pipermail/torqueusers/attachments/20080517/3c160aee/attachment.html
More information about the torqueusers
mailing list