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?
screencommand. $\endgroup$