#!/bin/sh
#
# Cancel script example for GridSolve batch system.
#
# Arguments:  GridSolve will pass one argument to the cancel
# script, which is the identifier of the job to kill.
#
# GridSolve cancel scripts should exit with the appropriate
# status as follows:
#
#   0 - the job was successfully killed
#   1 - failed to kill the job
#

if kill -9 $1 >& /dev/null; then
  exit 0
else
  exit 1
fi
