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

Home » Public Forums » archive » Re: Problems with long IDL background jobs
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Problems with long IDL background jobs [message #36986] Mon, 10 November 2003 01:37
Nigel Wade is currently offline  Nigel Wade
Messages: 286
Registered: March 1998
Senior Member
R.G. Stockwell wrote:
> "Nigel Wade" <nmw@ion.le.ac.uk> wrote in message
> news:bofq1e$t73$1@south.jnrs.ja.net...
> ...
>
>> Does your IDL code do any plotting? I didn't think IDL actually opened any
>> connection to the X server unless you issued a command which initiates
>
> graphics.
>
>
>
> As a guess, perhaps you have some commands in your startup
> that initiate the X server connection.
> I don't know if the following commands do this:
> device,true=24 ; i do not think i need this
> device,retain = 2
> device,decomposed=0
>
> Cheers,
> bob
>
>
>

I think that any DEVICE command has the potential to open a graphics channel
as it may well need it to perform the requested operation. For example, a
device,true=24 will almost certainly do so as it's requesting a 24bit
TrueColor visual from the X server and will need to communicate with the X
server to do so. I think retain=2 will also, as it's asking for use of the X
servers backing store.

--
Nigel Wade, System Administrator, Space Plasma Physics Group,
University of Leicester, Leicester, LE1 7RH, UK
E-mail : nmw@ion.le.ac.uk
Phone : +44 (0)116 2523548, Fax : +44 (0)116 2523555
Re: Problems with long IDL background jobs [message #36989 is a reply to message #36986] Sun, 09 November 2003 01:56 Go to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Craig Markwardt wrote:

>
> Reimar Bauer <R.Bauer@fz-juelich.de> writes:
>> Hi
>>
>> I know this problem too. My solution is to start the session without the
>> X-Server. If I did only a ssh -C then it works while ssh -XC doesn't.
>>
>> If you have only a terminal connection then nothing which requires X is
>> started. I think the problem belongs more to the OS or user environment
>> as to idl.
>
> And, why not SET_PLOT, 'NULL' or SET_PLOT, 'Z' to *really* prevent IDL
> from doing anything with X?
>
> Craig
>

Most time you are right but what is if you don't like to change your normal
startup file.
The problem is e.g. device,decompose=0 or a window command and so on.

Reimar


--
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
http://www.fz-juelich.de/icg/icg-i/
============================================================ ======
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_lib_intro. html
Re: Problems with long IDL background jobs [message #37004 is a reply to message #36989] Fri, 07 November 2003 12:01 Go to previous message
R.G. Stockwell is currently offline  R.G. Stockwell
Messages: 363
Registered: July 1999
Senior Member
"Nigel Wade" <nmw@ion.le.ac.uk> wrote in message
news:bofq1e$t73$1@south.jnrs.ja.net...
...
>
> Does your IDL code do any plotting? I didn't think IDL actually opened any
> connection to the X server unless you issued a command which initiates
graphics.
>


As a guess, perhaps you have some commands in your startup
that initiate the X server connection.
I don't know if the following commands do this:
device,true=24 ; i do not think i need this
device,retain = 2
device,decomposed=0

Cheers,
bob
Re: Problems with long IDL background jobs [message #37008 is a reply to message #37004] Fri, 07 November 2003 01:52 Go to previous message
Nigel Wade is currently offline  Nigel Wade
Messages: 286
Registered: March 1998
Senior Member
J.K. wrote:
> 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.

No, that's the X client (IDL) complaing it's lost its connection to the X
server.

>
> 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.

Does your IDL code do any plotting? I didn't think IDL actually opened any
connection to the X server unless you issued a command which initiates graphics.

Anyway, try issuing the command 'unset DISPLAY' before running IDL (assuming
you are using sh/ksh). And, for good measure, in IDL use the command
SET_PLOT,'PS' to change the default display device to PostScript.

--
Nigel Wade, System Administrator, Space Plasma Physics Group,
University of Leicester, Leicester, LE1 7RH, UK
E-mail : nmw@ion.le.ac.uk
Phone : +44 (0)116 2523548, Fax : +44 (0)116 2523555
Re: Problems with long IDL background jobs [message #37009 is a reply to message #37008] Thu, 06 November 2003 21:32 Go to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
Reimar Bauer <R.Bauer@fz-juelich.de> writes:
> Hi
>
> I know this problem too. My solution is to start the session without the
> X-Server. If I did only a ssh -C then it works while ssh -XC doesn't.
>
> If you have only a terminal connection then nothing which requires X is
> started. I think the problem belongs more to the OS or user environment
> as to idl.

And, why not SET_PLOT, 'NULL' or SET_PLOT, 'Z' to *really* prevent IDL
from doing anything with X?

Craig

--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@REMOVEcow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
Re: Problems with long IDL background jobs [message #37014 is a reply to message #37009] Thu, 06 November 2003 09:11 Go to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Hi

I know this problem too. My solution is to start the session without the
X-Server. If I did only a ssh -C then it works while ssh -XC doesn't.

If you have only a terminal connection then nothing which requires X is
started. I think the problem belongs more to the OS or user environment
as to idl.


regards
Reimar




J.K. wrote:
> 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.


--
Reimar Bauer

Institut fuer Stratosphaerische Chemie (ICG-I)
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
------------------------------------------------------------ -------
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_lib_intro. html
============================================================ =======
Re: Problems with long IDL background jobs [message #37015 is a reply to message #37014] Thu, 06 November 2003 09:05 Go to previous message
wmconnolley is currently offline  wmconnolley
Messages: 106
Registered: November 2000
Senior Member
J.K. <ellips@yahoo.com> wrote:
> idl $1 >& log.$1 &

Possibly replace with:

( idl $1 >& log.$1 & ) &

that leaves the inner process more disconnected.

-W.

--
William M Connolley | wmc@bas.ac.uk | http://www.antarctica.ac.uk/met/wmc/
Climate Modeller, British Antarctic Survey | Disclaimer: I speak for myself
I'm a .signature virus! copy me into your .signature file & help me spread!
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Is it possible to change the title of a WIDGET_SLIDER?
Next Topic: Problem on the location of xtickname

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

Current Time: Wed Oct 08 20:01:44 PDT 2025

Total time taken to generate the page: 0.03279 seconds