#! /bin/ksh ############ ASGARD SPECIAL (WHERE I STARTED THE qsub command is $PBS_O_WORKDIR) DIR=$PBS_O_WORKDIR; ########################### RUNDIR="$DIR/temp=$temp"; # This is the new directory where the run is executing mkdir $RUNDIR; cd $RUNDIR; # change to this directory cp $DIR/$EXE $RUNDIR; # copy $EXE and maybe further files to run directory ### just in case you use a namelist structure in fortran, this runs like this: ### # cat < yournamelistfile # \$liste # temp=$temp, # etc=... # \$end # EOF $EXE >> run.output.temp=$temp # where to write the stdout of executable exit;