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

Home » Public Forums » archive » Re: idl -rt as cron job
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: idl -rt as cron job [message #30038] Thu, 04 April 2002 02:34
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
David Burridge wrote:
>
> Hi Reimar,
>
> "Reimar Bauer" <r.bauer@fz-juelich.de> wrote in message
> news:3CAB38D9.68D60373@fz-juelich.de...
>> Hi,
>>
>> did someone have an idea why I got these error message
>>
>> % Unable to obtain file status. Unit: 0, File: <stdin>
>> Bad file descriptor
>> Memory fault
>>
>> This happens if I start a simple Hello World application
>> by runtime in a cron job.
>>
>> In the past I have had no problems doing this
>>
>> Reimar
>
> Have you got a "READ" statement (as opposed to "READF") in the code? That
> would try and read from the command line and (I guess) would cause an error
> in a runtime app (that has no command line). Alternatively, you could be
> doing an operation (e.g. "FSTAT") on file unit zero which would also cause
> problems when switched to RT mode.
>
> Good luck,
>
> Dave

Dear Dave,

this is my Hello example

pro test
print,'Hello'
end

IDL> .run test
IDL> save,file='/tmp/test.sav',/routines,/compress
IDL> idl -rt='/tmp/test.sav'

Installation number:
Licensed for use by:

Hello


And as cron job I got an error message



All arguments are good reasons but not for this simple code.
In the past the idl startup sequence and the word "Hello"
was printed into a mail.

Now it looks like idl -rt won't generally not start as cronjob,
because of a problem with <STDIN>. We do have another problem
sometimes with idlde and <STDIN>. May be this gives a hint what
is different to idl5.4.


At the moment I am helping me with a small script which is
piped into an idl session.

Reimar



--
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/icg1/idl_icglib/idl_lib_intro.h tml
============================================================ =======
Re: idl -rt as cron job [message #30041 is a reply to message #30038] Thu, 04 April 2002 01:27 Go to previous message
David Burridge is currently offline  David Burridge
Messages: 33
Registered: January 1998
Member
Hi Reimar,

"Reimar Bauer" <r.bauer@fz-juelich.de> wrote in message
news:3CAB38D9.68D60373@fz-juelich.de...
> Hi,
>
> did someone have an idea why I got these error message
>
> % Unable to obtain file status. Unit: 0, File: <stdin>
> Bad file descriptor
> Memory fault
>
> This happens if I start a simple Hello World application
> by runtime in a cron job.
>
> In the past I have had no problems doing this
>
> Reimar

Have you got a "READ" statement (as opposed to "READF") in the code? That
would try and read from the command line and (I guess) would cause an error
in a runtime app (that has no command line). Alternatively, you could be
doing an operation (e.g. "FSTAT") on file unit zero which would also cause
problems when switched to RT mode.

Good luck,

Dave
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: changing the color map without having to re-load an image
Next Topic: Re: testcase

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

Current Time: Fri Oct 10 05:07:18 PDT 2025

Total time taken to generate the page: 0.48139 seconds