Batch mode and ssh... [message #71781] |
Thu, 22 July 2010 02:05 |
Dave[5]
Messages: 11 Registered: July 2010
|
Junior Member |
|
|
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
|
|
|