From 37f5ebd4a3b15d9c1886a1230805e2e21641ca7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Adjemian=20=28Argos=29?= <stepan@adjemian.eu> Date: Tue, 2 Jul 2024 23:45:42 +0200 Subject: [PATCH] Write all outputs to a log file. -> standard output and standard error streams. --- models/run.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/models/run.sh b/models/run.sh index 45eb489..8db1742 100755 --- a/models/run.sh +++ b/models/run.sh @@ -2,15 +2,15 @@ while [ ! -f m10-done.info ] do - matlab -batch "MODELS=1; compute_transition;" || echo "Matlab crashed. Skip this configuration and run next one." + matlab -batch "MODELS=1; compute_transition;" |& tee -a m10.log done while [ ! -f m20-done.info ] do - matlab -batch "MODELS=2; compute_transition;" + matlab -batch "MODELS=2; compute_transition;" |& tee -a m20.log done while [ ! -f m30-done.info ] do - matlab -batch "MODELS=3; compute_transition;" + matlab -batch "MODELS=3; compute_transition;" |& tee -a m30.log done -- GitLab