From 82f068a85a3e5e18efa53f923412ec342fb76ae0 Mon Sep 17 00:00:00 2001 From: Christoph Niethammer Date: Mon, 2 Jul 2012 11:14:25 +0000 Subject: [PATCH] Module unloading without check of command outcome. --- check_modules.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/check_modules.sh b/check_modules.sh index 79c1372..91fe10a 100755 --- a/check_modules.sh +++ b/check_modules.sh @@ -11,6 +11,7 @@ failed_modules=() TMP=${TMP:=/tmp} logfile="check_modules.log" module_load_logfile="$TMP/.module_load.log" +module_rm_logfile="$TMP/.module_rm.log" echo "Module environment check, $(date)" | tee $logfile @@ -27,8 +28,10 @@ for m in $(module av -t 2>&1); do failed_modules=(${failed_modules[@]} $m) cat $module_load_logfile >> $logfile fi + module rm $m > $module_rm_logfile 2>&1 module purge 2>/dev/null rm -f $module_load_logfile + rm -f $module_rm_logfile fi done