Re: idl -rt as cron job [message #30038] |
Thu, 04 April 2002 02:34  |
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
============================================================ =======
|
|
|