/usr/share/arc/cancel_common.sh is in nordugrid-arc-arex 5.0.5-1ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | #
# Common block for cancel scripts
# must be called with the grami file as argument
# remember to set $joboption_lrms
if [ -z "$joboption_lrms" ]; then echo 'joboption_lrms must be set' 1>&2; exit 1; fi
if [ -z "$pkgdatadir" ]; then echo 'pkgdatadir must be set' 1>&2; exit 1; fi
. ${pkgdatadir}/configure-${joboption_lrms}-env.sh || exit $?
arg_file=$1
##############################################################
# Source the argument file.
##############################################################
if [ -z "$arg_file" ] ; then
echo "Arguments file should be specified" 1>&2
exit 1
fi
if [ ! -f $arg_file ] ; then
echo "Missing arguments file expected at '$arg_file'." 1>&2
exit 1
fi
. $arg_file
:
|