<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 9pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
Hello all,<BR> <BR>I have the following shell script for running with qsub/mpiexec<BR> <BR> <BR>#!/bin/bash<BR>#PBS - nodes=14:ppn=2<BR>#PBS -l walltime=99:00:00<BR>#PBS -j eo<BR>#PBS -N mpi<BR> <BR> <BR>###change directory<BR>cd $PBS_O_WORKDIR<BR> <BR>NUM_NODES = `cat $PBS_NODEFILE | wc -l`<BR> <BR>cat $PBS_NODEFIL >& ./temp/outout<BR> <BR>echo $NUM_NODES >& ./temp/out2<BR> <BR> <BR> <BR>the statement<BR> <BR> echo $NUM_NODES >& ./temp/out2<BR> <BR> produce nothing in the file ./temp/out2.<BR> <BR>However, the file ./temp/outout has the following lines<BR> <BR> hpc01<BR> hpc02<BR> hpc03<BR> hpc04<BR> <BR>I do not know why<BR> <BR> <BR>please help.<BR> <BR> <BR>Felix<BR><br /><hr />“七件武器,七种完美” <a href='http://get.live.cn' target='_new'>立刻体验!</a></body>
</html>