Skip to content

Commit

Permalink
Merge pull request opensciencegrid#22 from brianhlin/sw2199_sge_colorado
Browse files Browse the repository at this point in the history
Correctly setup the environment for SGE job submission (SOFTWARE-2199)
  • Loading branch information
bbockelm committed Feb 10, 2016
2 parents 5bf1104 + 71cbdb1 commit 0f300fc
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/scripts/sge_cancel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#


[ -f ${GLITE_LOCATION:-/opt/glite}/etc/blah.config ] && . ${GLITE_LOCATION:-/opt/glite}/etc/blah.config
. `dirname $0`/blah_load_config.sh

if [ -z "$sge_rootpath" ]; then sge_rootpath="/usr/local/sge/pro"; fi
if [ -r "$sge_rootpath/${sge_cellname:-default}/common/settings.sh" ]
Expand Down
2 changes: 1 addition & 1 deletion src/scripts/sge_hold.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#


[ -f ${GLITE_LOCATION:-/opt/glite}/etc/blah.config ] && . ${GLITE_LOCATION:-/opt/glite}/etc/blah.config
. `dirname $0`/blah_load_config.sh

if [ -z "$sge_rootpath" ]; then sge_rootpath="/usr/local/sge/pro"; fi
if [ -r "$sge_rootpath/${sge_cellname:-default}/common/settings.sh" ]
Expand Down
2 changes: 1 addition & 1 deletion src/scripts/sge_resume.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#


[ -f ${GLITE_LOCATION:-/opt/glite}/etc/blah.config ] && . ${GLITE_LOCATION:-/opt/glite}/etc/blah.config
. `dirname $0`/blah_load_config.sh

if [ -z "$sge_rootpath" ]; then sge_rootpath="/usr/local/sge/pro"; fi
if [ -r "$sge_rootpath/${sge_cellname:-default}/common/settings.sh" ]
Expand Down
5 changes: 2 additions & 3 deletions src/scripts/sge_status.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,9 @@
#


#[ -f ${GLITE_LOCATION:-/opt/glite}/etc/blah.config ] && . ${GLITE_LOCATION:-/opt/glite}/etc/blah.config
. `dirname $0`/blah_load_config.sh

sge_helper_path=${GLITE_LOCATION:-/opt/glite}/bin
sge_helper_path=${blah_libexec_directory}

usage_string="Usage: $0 [-w] [-n]"

Expand Down Expand Up @@ -68,7 +67,7 @@ tmpid=`echo "$@"|sed 's/.*\/.*\///g'`
jobid=${tmpid}.${sge_cellname:-default}


blahp_status=`exec ${sge_helper_path:-/opt/glite/bin}/sge_helper --status $getwn $jobid`
blahp_status=`exec ${sge_helper_path}/sge_helper --status $getwn $jobid`
retcode=$?

# Now see if we need to run qstat 'manually'
Expand Down
2 changes: 1 addition & 1 deletion src/scripts/sge_submit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ cat > $bls_tmp_file << end_of_preamble
end_of_preamble

#local batch system-specific file output must be added to the submit file
local_submit_attributes_file=${GLITE_LOCATION:-/opt/glite}/bin/sge_local_submit_attributes.sh
local_submit_attributes_file=${blah_libexec_directory}/sge_local_submit_attributes.sh
if [ -r $local_submit_attributes_file ] ; then
echo \#\!/bin/sh > $bls_opt_tmp_req_file
if [ ! -z $bls_opt_req_file ] ; then
Expand Down

0 comments on commit 0f300fc

Please sign in to comment.