Problem running matlab script to background
Mostra commenti meno recenti
Hello, I made a script to create some map plots using functions like contourfm and quiverm. I run this script on a server and putting it to background like this:
matlab -nosplash -nodisplay -nodesktop < (name.of.script.m) > output.log &
Then I can successfuly logout the machine and the job continues until an error occurs stating: "Segmentation fault (core dumped)" leading to no results.
If I try without -nodisplay switch, no Segmentation fault appears, results are generated but I cann't logout without killing the job at the same time...
Any ideas would be helpful! Thank you in advance!
1 Commento
Alessandro
il 11 Ott 2013
Dear Aristotelis, look at this guide, I had the same issue and now everything works fine ;)
I hope it will be helpful :)
Ale
Risposta accettata
Più risposte (1)
Walter Roberson
il 12 Mar 2013
1 voto
Are you using OS-X or Linux? If so,
nohup matlab -nosplash -nodisplay -nodesktop -r 'try; ScriptName; catch; end; quit' > output.log &
where ScriptName does not have the .m
1 Commento
Aristotelis
il 12 Mar 2013
Categorie
Scopri di più su MATLAB Parallel Server in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!