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 #71780 is a reply to message #71777] Thu, 22 July 2010 02:48 Go to previous message
Foldy Lajos is currently offline  Foldy Lajos
Messages: 268
Registered: October 2001
Senior Member
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 10:03:41 PDT 2025

Total time taken to generate the page: 0.71917 seconds