From cc33d381c3edb98e1894eb3cc13e297f43845c22 Mon Sep 17 00:00:00 2001 From: JAMES LETTS Date: Tue, 29 Apr 2014 16:08:51 -0700 Subject: [PATCH] Added source file bashrc to set up everything --- bashrc | 13 +++++++++++++ condor_history_analyze.sh | 2 ++ 2 files changed, 15 insertions(+) create mode 100644 bashrc diff --git a/bashrc b/bashrc new file mode 100644 index 0000000..796aec0 --- /dev/null +++ b/bashrc @@ -0,0 +1,13 @@ +#!/bin/bash + +# Discover the directory where the software sits: +RELEASE_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" + +# source the functions to discover SiteDB, HTCondor and CMS +# Dashboard information +source $RELEASE_DIR/sitedb_functions.sh +source $RELEASE_DIR/condor_functions.sh +source $RELEASE_DIR/dashboard_functions.sh + +# set X509_USER_PROXY to be your valid CMS grid proxy: +export X509_USER_PROXY=/tmp/x509up_u500 diff --git a/condor_history_analyze.sh b/condor_history_analyze.sh index e41077b..a18486b 100644 --- a/condor_history_analyze.sh +++ b/condor_history_analyze.sh @@ -14,6 +14,8 @@ NOW=`ls -l --time-style=+%s $FILE | awk '{print $6}'` echo echo "SCHEDDS CONSIDERED IN THE HISTORY:" +/bin/date -u +/bin/date echo echo " Jobs Schedd" cat $FILE | grep -o GlobalJobId=.* | awk -F\= '{print $2}' | awk -F\# '{print $1}' | sort | uniq -c