#! /bin/sh

if [ $# -eq 0 ]; then
   echo "provide argument <number of processes to start>" 1>&2
   exit 1
fi

if [ -z "$GRAMCONTACT" ] ; then
    GRAMCONTACT="pitcairn.mcs.anl.gov"
fi

#pwd=`/bin/pwd`
rsl="&(executable=`pwd`/myjobtest)(count=$1)"

arch=`${GLOBUS_INSTALL_PATH}/sbin/config.guess`
${GLOBUS_INSTALL_PATH}/tools/${arch}/bin/globusrun -o -r "${GRAMCONTACT}" "${rsl}"

