Search Mailing List Archives


Limit search to: Subject & Body Subject Author
Sort by: Reverse Sort
Limit to: All This Week Last Week This Month Last Month
Select Date Range     through    

[farmshare-discuss] Overnight Matlab jobs in corn

David Esteban Manosalvas demanosalvas at stanford.edu
Thu Jul 26 11:56:01 PDT 2012


I am almost sure that I did, but assumning that I did not, shouldn't the MATLAB job keep running and  still appear if I run "top" even if I mistakenly ssh in a different corn???

David

----- Original Message -----
From: "Stephen James Wolf" <sjwolf at stanford.edu>
To: "Open discussion for users of FarmShare" <farmshare-discuss at lists.stanford.edu>
Sent: Thursday, July 26, 2012 11:50:15 AM
Subject: Re: [farmshare-discuss] Overnight Matlab jobs in corn

Are you sure that you are SSH'g into the same corn machine that you created the screen on? e.g. corn05, corn07, etc and not just corn?

Stephen

----- Original Message -----
From: "David Esteban Manosalvas" <demanosalvas at stanford.edu>
To: "Open discussion for users of FarmShare" <farmshare-discuss at lists.stanford.edu>
Sent: Thursday, July 26, 2012 11:47:04 AM
Subject: Re: [farmshare-discuss] Overnight Matlab jobs in corn

I am using "nohup" and the comands that I am using to run the code are(after I use PuTTy to ssh):

kinit;aklog
screen
keeptoken
(run whatever this tells you too)
nohup \matlab -nojvm -nodisplay < scriptname.m >& driver.log &
ctrl+a+d (to detach from the screen)
exit (to close the ssh session)

But when I ssh and do a "screen -ls" the screen is not there anymore and the Matlab job is not there either

David



----- Original Message -----
From: "Stephen James Wolf" <sjwolf at stanford.edu>
To: "Open discussion for users of FarmShare" <farmshare-discuss at lists.stanford.edu>
Sent: Thursday, July 26, 2012 11:36:50 AM
Subject: Re: [farmshare-discuss] Overnight Matlab jobs in corn

Can you paste the exact commands you are using?

The following should create a matlab process which runs on corn without being kicked

In initial terminal:
kinit;aklog 
(insert your password into the prompt)
screen -S matlabtest

(new screen pops up)
keeptoken
(run whatever this tells you too)
nohup matlab -nosplash -nodisplay < yourprogram.m &

now press ctrl+A+D to detach the screen and close your SSH window.

Also make sure to remember which corn box you have remoted into and remote into the same box.

Stephen Wolf

----- Original Message -----
From: "David Esteban Manosalvas" <demanosalvas at stanford.edu>
To: farmshare-discuss at lists.stanford.edu, "Jason Scott Bishop" <bishopj at stanford.edu>
Sent: Thursday, July 26, 2012 11:31:03 AM
Subject: [farmshare-discuss] Overnight Matlab jobs in corn

All, 

I have been trying to run some MATLAB programs in corn, I have been using "nohub" to run it in the backgroud, and "screen" to be able to close my ssh and keep them running.  I have also been using "keeptoken" in the screen to make sure that if the job takes longer than 25 hours, AFS wont kick me out, but still after doing all this, when I close my ssh all my MATLAB jobs are killed.

Does anyone have any suggestion on what to do about this??

Thanks,

David Manosalvas
Aeronautics and Astronautics
_______________________________________________
farmshare-discuss mailing list
farmshare-discuss at lists.stanford.edu
https://mailman.stanford.edu/mailman/listinfo/farmshare-discuss
_______________________________________________
farmshare-discuss mailing list
farmshare-discuss at lists.stanford.edu
https://mailman.stanford.edu/mailman/listinfo/farmshare-discuss
_______________________________________________
farmshare-discuss mailing list
farmshare-discuss at lists.stanford.edu
https://mailman.stanford.edu/mailman/listinfo/farmshare-discuss
_______________________________________________
farmshare-discuss mailing list
farmshare-discuss at lists.stanford.edu
https://mailman.stanford.edu/mailman/listinfo/farmshare-discuss



More information about the farmshare-discuss mailing list