Sto eseguendo matlab su 48 macchine virtuali e vorrei automatizzarlo. I ssh nelle macchine quindi utilizzare matlab -r matlab_command > outfile.txt &
per eseguire il processo in background ed eseguire correttamente quando si disconnette. L'unico problema è che quando i jobs
il mio processo viene interrotto e non si avvia fino a I fg
^z bg
. C'è una bandiera MATLAB in modo che io possa avviarla in background senza che si fermi?Esecuzione di matlab in background
Grazie, Mike
Per chiarire questo è l'ordine di comandi che non funzionano
ssh server
matlab -r matlab_command > outfile.txt &
jobs
[1] Arrestato
Per correggere questo ho
fg
^z
bg
logout
ed ora funziona comando
Cosa succede se si esegue questa operazione: 'matlab -r matlab_command> outfile.txt dev/null &'? –
Grazie, questo ha fatto esattamente quello che volevo – msandbot