comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Batch mode and ssh...
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Batch mode and ssh... [message #71777 is a reply to message #71776] Thu, 22 July 2010 04:22 Go to previous messageGo to previous message
Dave[5] is currently offline  Dave[5]
Messages: 11
Registered: July 2010
Junior Member
Wow, thanks, lajos. I'm experimenting with screen to see how it
works.
I notice that if I ask screen for the processes it's detached from
(using screen -list) I see a list of processes that seem to be on my
local machine, even though they are executing on the remote system.
Perhaps it's a stupid question, but turning my local system off
wouldn't kill the execution I started remotely, would it? It's not
"dependent" on the local process still?

Dave


On Jul 22, 11:48 am, FÖLDY Lajos <fo...@rmki.kfki.hu> wrote:
> On Thu, 22 Jul 2010, Dave wrote:
>> I need to execute an idl script that will take ~2 days to run.  I'd
>> like to run this on a remote system I SSH into in batch mode so that I
>> can log off and use my local machine for other things.  However, I
>> cannot seem to both log off and get useful output from my script.  My
>> first attempt was to write a batch mode script containing
>> (find_model_orich is the lengthy program):
>
>> .compile /home/driebel/IDL/Astro_lib/pro/readcol.pro
>> .compile find_model_orich
>> find_model_orich,/graph
>> retall
>> exit
>
>> I then executed this from the command line using:
>
>> nohup nice /opt/rsi/idl/bin/idl < batch_script >& log &
>
>> This does execute the program correctly in the background, but I
>> cannot logout of the terminal without killing the execution.  Thus, my
>> laptop is stuck at work, holding open a terminal.  The internet
>> advised me that this was because of the way SSH interacts with
>> background scripts and to try redirecting the output:
>
>> nohup nice /opt/rsi/idl/bin/idl batch_script >& /dev/null &
>
>> Indeed, I can now logout of the terminal, but ALL my output, such as
>> the various graphs and text files my routine should generate (and I
>> want, of course), get sent to /dev/null.  Is there are way to get IDL
>> batch mode to still output my graphs in the background, but to let me
>> close my SSH session to the remote machine?  Thanks,
>> Dave
>
> I use GNU screen (http://www.gnu.org/software/screen/) for long runs.
> You can deattach the terminal and logout, then login later again and
> reattach it.
>
> regards,
> lajos
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Simple hack to get $2000 to your home.
Next Topic: Re: Stop and return to caller

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 15:32:49 PDT 2025

Total time taken to generate the page: 0.24175 seconds