diff --git a/Util/functions.sh b/Util/functions.sh index 4bcba8f..614d70d 100644 --- a/Util/functions.sh +++ b/Util/functions.sh @@ -361,12 +361,12 @@ release_SAM_file() { watchdog() { local TL=$1 - [ -z "$TLIMIT" ] && TL=7200 + [ -z "$TL" ] && TL=7200 DD=/pnfs/mu2e/scratch/users/$GRID_USER/watchdog [ -z "$MU2E" ] && source /cvmfs/mu2e.opensciencegrid.org/setupmu2e-art.sh - [ -z "$SETUP_IFDH" ] && setup ifdhc + [ -z "$SETUP_IFDHC" ] && setup ifdhc ifdh mkdir_p $DD @@ -399,3 +399,6 @@ watchdog() { } + +# so watchdog can be run in a subshell +export -f watchdog diff --git a/Util/wrapper.sh b/Util/wrapper.sh index 4a16874..780ccc6 100755 --- a/Util/wrapper.sh +++ b/Util/wrapper.sh @@ -15,6 +15,11 @@ source /cvmfs/mu2e.opensciencegrid.org/bin/OfflineOps/functions.sh tee_date Starting OfflineOps/wrapper.sh +tee_date Check LANG +printenv | grep LC_ +printenv LANG +unset LC_CTYPE + # always need to find setup source /cvmfs/mu2e.opensciencegrid.org/setupmu2e-art.sh