1
$\begingroup$

I am trying to run 8 Mathematica Scripts on a HPC that I access through ssh. I wrote this script:

#!/bin/bash

nohup math -script Script_1.wls > Script_1.log 2>&1 &
nohup math -script Script_2.wls > Script_2.log 2>&1 &
nohup math -script Script_3.wls > Script_3.log 2>&1 &
nohup math -script Script_4.wls > Script_4.log 2>&1 &
nohup math -script Script_5.wls > Script_5.log 2>&1 &
nohup math -script Script_6.wls > Script_6.log 2>&1 &
nohup math -script Script_7.wls > Script_7.log 2>&1 &
nohup math -script Script_8.wls > Script_8.log 2>&1 &

wait

Which should (according to chatgpt) keep the scripts running after I closed the session. It didn't work, and they stop running immediately after I closed the session. Any tips on how to do that?

$\endgroup$
1
  • 2
    $\begingroup$ I suggest using a terminal multiplexer such as the GNU screen command. $\endgroup$ Commented Jan 28 at 0:42

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.