The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Running MATLAB in the Background Under Cray Machine
Replies: 1   Last Post: Nov 26, 2012 6:01 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Justin Ashmall

Posts: 20
Registered: 8/16/12
Re: Running MATLAB in the Background Under Cray Machine
Posted: Nov 26, 2012 6:01 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"Rajan" wrote in message <k8utp8$5qj$>...
> How I can i submit a job in matlab 2008 under cray machine(server), so that when i turnoff my login PC, it will not terminate the running matlab code
> I have tried running my code like
> nohup /usr/local/MATLAB/bin/matlab -nodisplay -nosplash -r mycode.m > outfile.txt 2>/dev/null &
> but doing this has gerenated 100 GB outfile.txt
> please give me solution so that i will not generate so big large outfile.txt

I would suggest using the "screen" command (if it's available on your server). This allows you to start a terminal that persists after you log off. You can then reconnect to the session later. Google for "gnu screen", there are lots of tutorials.

Otherwise, you could redirect your standard output to /dev/null (i.e. replace "outfile.txt" with /dev/null). However doing that you'd have no way to debug any errors.

Finally, why not just change your code so it doesn't write so much text to screen (which then ends up in outfile.txt)?

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.