Problems with long IDL background jobs [message #37017] |
Thu, 06 November 2003 08:12 |
ellips
Messages: 4 Registered: November 2003
|
Junior Member |
|
|
I have some processing that takes about 12hrs so
I'd like to run this in the background. I'm on
IRIX. It must be something simple that I'm doing
wrong. After I log out and close my X11 connections,
I'll get a message in my log file:
XIO: fatal IO error 131 (Connection reset by peer) on X server "xxxxxxxx:0.0"
after 116 requests (116 known processed) with 0 events remaining.
Am I not redirecting standard out properly?
Below is what I'm doing. Any help appreciated.
idlstartbg.pro startup file, I only set the path, no device commands.
!PATH=!PATH+":~/idl:~/wave/wvproc:~/wave/fermi98
runidl batch file:
#!/bin/csh
setenv IDL_STARTUP idlstartbg.pro
idl $1 >& log.$1 &
runback.pro
.run sdsnan
exit
sdsnan.pro is a main
filelist = strarr(600)
openr, unit, "list",/get_lun
i = -1
fn = ' '
while (not eof(unit)) do begin
i = i + 1
readf, unit, fn
filelist(i) = fn
print, i,filelist(i)
endwhile
close, unit
; do lots of other stuff with some print statments
end
How I execute:
nohup runidl runback >& out &
exit (close X window)
Produces:
out: empty
log.runback has standard out but also the X11 message and job does not
complete.
What am I doing wrong?
If I change all print to printf in sdsnan.pro to write to a file it
works but why can't I capture the standard out?
Thanks,
John K.
|
|
|