diff --git a/RTCP/Run/src/BGPPartition.sh b/RTCP/Run/src/BGPPartition.sh index db966abc21e867536fb42aa6caac8ea181a14617..38b9bd926c24205b94b28558b70cca0950d656ea 100755 --- a/RTCP/Run/src/BGPPartition.sh +++ b/RTCP/Run/src/BGPPartition.sh @@ -11,7 +11,7 @@ function stop() { } function getpid() { - STATUS=`bgpartstatus $PARTITION </dev/null` + STATUS=`cd /;bgpartstatus $PARTITION </dev/null` case $STATUS in busy) PID="UP [$PARTITION]" diff --git a/RTCP/Run/src/CNProcessing.sh b/RTCP/Run/src/CNProcessing.sh index 97db6452e0101de0dfa36c5b59baa887d498af98..b8f07788ac10af6c661b824e0c515223358cb797 100755 --- a/RTCP/Run/src/CNProcessing.sh +++ b/RTCP/Run/src/CNProcessing.sh @@ -39,7 +39,7 @@ function stop() { mpikill "$PID" || # ask DNA to kill the job - (bgjobs -u $USER -s | awk "/$PARTITION/ { print \$1; }" | xargs -L 1 bgkilljob) || + (cd /;bgjobs -u $USER -s | awk "/$PARTITION/ { print \$1; }" | xargs -L 1 bgkilljob) || # kill -9 is the last resort kill -9 "$PID" @@ -50,8 +50,8 @@ function stop() { while true do - JOBSTATUS=`bgjobs -u $USER -s | awk "/$PARTITION/ { print \\$6; }"` - JOBID=`bgjobs -u $USER -s | awk "/$PARTITION/ { print \\$1; }"` + JOBSTATUS=`cd /;bgjobs -u $USER -s | awk "/$PARTITION/ { print \\$6; }"` + JOBID=`cd /;bgjobs -u $USER -s | awk "/$PARTITION/ { print \\$1; }"` if [ -z "$JOBID" ] then diff --git a/RTCP/Run/src/locations.sh.in b/RTCP/Run/src/locations.sh.in index 0edbe2c3aa0f0cee724582be86053389f672fad6..c3b571a966463cf12618b564555a9265c44fe961 100644 --- a/RTCP/Run/src/locations.sh.in +++ b/RTCP/Run/src/locations.sh.in @@ -88,9 +88,9 @@ function set_psetinfo() { # bghierarchy needs a valid stdin for some reason and will read from it, so provide a fake one if [ "$PARTITION" == "R00R01" ] then - SUBPARTITIONS="`(bghierarchy -s R00 R01;bghierarchy -s \`bghierarchy -s R00 R01\`) </dev/null`" + SUBPARTITIONS="`(cd /;bghierarchy -s R00 R01;bghierarchy -s \`bghierarchy -s R00 R01\`) </dev/null`" else - SUBPARTITIONS="`(bghierarchy -s $PARTITION;bghierarchy -s \`bghierarchy -s $PARTITION\`) </dev/null`" + SUBPARTITIONS="`(cd /;bghierarchy -s $PARTITION;bghierarchy -s \`bghierarchy -s $PARTITION\`) </dev/null`" fi # a comma-separated list of all psets in $PARTITION