#!/bin/env bash #choose the queue you want NCORES=8 #QUEUE="pa_long -pe openmpi_$NCORES $NCORES" QUEUE="mc_long -pe multicores $NCORES" #QUEUE="long" if [ "$QUEUE" = "long" ] ; then NCORES=1 echo "WARING you asked for $NCORES cores and long queue: putting ONE" fi if [ $# -ne 1 ]; then echo "missing parFile" exit fi parFile=$1 exec=$CAMELROOT/$CMTCONFIG/Minimize if ! [ -f $exec ] ; then echo "missing exec" exit fi localexec=`basename $exec` if [ -z "$CLIKDIR" ] ; then echo "miss CLIKDIR" exit fi if ! [ -f $parFile ] ; then echo "wrong parFile $parFile" exit fi #cat $parFile cd `dirname $parFile` dirpar=$PWD cd - parbase=`basename $parFile` zeroot=$CAMELROOT/batch/${parbase%".par"} echo "Ouptut will be in: $zeroot" if [ -d $zeroot ] ; then echo "$zeroot already exists: remove or rename " exit fi mkdir $zeroot cd $zeroot cat > zerun.sh <