From 5800201da8e1adfb9ff3b4f72e77bede4522eb8f Mon Sep 17 00:00:00 2001 From: Wouter Verhelst Date: Sun, 23 Oct 2016 10:36:58 +0200 Subject: [PATCH] Configurable location of sge settings.sh script --- plugins/sge/sge_job_stats | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/sge/sge_job_stats b/plugins/sge/sge_job_stats index 7350eed0..0423ca1e 100755 --- a/plugins/sge/sge_job_stats +++ b/plugins/sge/sge_job_stats @@ -24,7 +24,9 @@ then exit 0 fi -. /opt/sge/default/common/settings.sh +SGE_SETTINGS=${SGE_SETTINGS:-/opt/sge/default/common/settings.sh} + +. $SGE_SETTINGS qstat -u '*' | awk ' BEGIN{maxnum = 0; running = 0; waiting = 0}