Search Mailing List Archives
[farmshare-discuss] updating Matlab errors and outputs
David Melbourne Blum
dmblum at stanford.edu
Fri Sep 21 17:24:01 PDT 2012
Thanks, I'll see if that works for me!
Ph.D candidate, Decision and Risk Analysis Group
Department of Management Science & Engineering
Predoctoral Science Fellow
Center for International Security and Cooperation
dmblum at stanford.edu
----- Original Message -----
From: Yizheng Liao <yzliao at stanford.edu>
To: Open discussion for users of FarmShare <farmshare-discuss at lists.stanford.edu>
Sent: Fri, 21 Sep 2012 14:39:13 -0700 (PDT)
Subject: Re: [farmshare-discuss] updating Matlab errors and outputs
The way I did is adding those commands to your script:
#MSUB -N task_name //here is your task name
#MSUB -k oe //output the output file and error file
Now, when the script is in progress, there will be two files stored on
your disk, task_name.e# and task_name.o#.
You can now use text editor to view these two files and track the progress.
Hopefully it is useful!
On Fri, Sep 21, 2012 at 1:55 PM, David Melbourne Blum
<dmblum at stanford.edu> wrote:
> Here's a question for anyone who knows something about linux:
> Like many users, I use qsub to submit scripts to the Barley cluster that launch Matlab and execute a .m file. As it is, the outputs and errors are blank until the .m file finishes running, or until I kill it with qdel, or until it encounters an error that causes it to terminate. However it would be very helpful if I could get the output and any errors associated with my .m file execution before the script is finished executing.
> Is there a linux command that I can enter into the shell when I'm logged into Corn or Senpai that will prompt the system to update the Matlab output or error files while Matlab is running (possibly some sort of switch for qstat), or alternatively, is there a line that I can add to scripts that I submit using qsub that will instruct the system to update errors and outputs periodically?
> Many thanks for any suggestions,
> David Blum
> Ph.D candidate, Decision and Risk Analysis Group
> Department of Management Science & Engineering
> Predoctoral Science Fellow
> Center for International Security and Cooperation
> Stanford University
> 510-414-4450 (m)
> 415-230-0645 (skype)
> 815-301-3500 (fax)
> dmblum at stanford.edu
> farmshare-discuss mailing list
> farmshare-discuss at lists.stanford.edu
farmshare-discuss mailing list
farmshare-discuss at lists.stanford.edu
More information about the farmshare-discuss