tclear OUTFILE on first output - sphere - GPU-based 3D discrete element method … | |
git clone git://src.adamsgaard.dk/sphere | |
Log | |
Files | |
Refs | |
LICENSE | |
--- | |
commit 5196046006892029cf4d5623186708646eec4210 | |
parent fd9db5bdc162015ac2545383db615cf26d96f8f4 | |
Author: Anders Damsgaard <[email protected]> | |
Date: Tue, 26 Aug 2014 10:30:31 +0200 | |
clear OUTFILE on first output | |
Diffstat: | |
M run_diagnostics.sh | 4 +++- | |
1 file changed, 3 insertions(+), 1 deletion(-) | |
--- | |
diff --git a/run_diagnostics.sh b/run_diagnostics.sh | |
t@@ -3,10 +3,12 @@ | |
OUTFILE=diagnostics.txt | |
function report { | |
- echo "\n### $@ ###" >> $OUTFILE | |
+ echo >> $OUTFILE | |
+ echo "### $@ ###" >> $OUTFILE | |
$@ >> $OUTFILE 2>&1 | |
} | |
+date > $OUTFILE | |
report ls -lh . | |
report ls -lhR src | |
report ls -lhR python |