#!/bin/sh # Handle queue submission transparently across different machines . pc_config.sh # Run by default jobscript=run.csh # Check for parameters to pc_qsub found=yes while [ "$found" = "yes" ] do if [ "$1" = "-s" ]; then jobscript=start.csh shift elif [ "$1" = "-sr" ]; then jobscript=start_run.csh shift elif [ "$1" = "-r" ]; then jobscript=run.csh shift elif [ "$1" = "-help" ]; then echo "Some help you are." exit 1 else found=no fi done # Make a meaningfully named link point to the job script # use the last directory name in the path CWD=`pwd` jobname=${CWD/*\//} queue_submit $jobscript $jobname $@