Re: idl -quiet command-line option doesn't work in cron [message #67406 is a reply to message #67405] |
Sun, 26 July 2009 15:03   |
MarioIncandenza
Messages: 231 Registered: February 2005
|
Senior Member |
|
|
On Jul 24, 10:28 am, Bringfried Stecklum <steck...@tls-tautenburg.de>
wrote:
> I got you wrong, sorry. Do you call idl directly in crontab or via a shell
> script? A last resort would be to pipe the output into "head -n +2" to skip the
> first two lines.
OK, I am getting somewhere. Making a shell-script wrapper and calling
that in cron gets rid of the "IDL Version XX" issue, so my original
question is solved.
Now, what I am still getting are three messages that IDL is sending to
STDERR:
% Loaded DLM: HDF.
% Program caused arithmetic error: Floating divide by 0
% Program caused arithmetic error: Floating illegal operand
I thought I remembered a thread about the math errors on this group,
but I couldn't find it searching. The DLM loading message I'm not
optimistic about. Unless someone on this group knows a way to suppress
it, I will probably end up giving up on getting good errors through
cron, and directing the STDERR from the IDL process to either the log
or the bit bucket. Does any know if IDL supplies a return code
indicating completion vs. crashing of the VM?
P.S. FMI (For My Information, when I Google this problem down the
road): when your cron requires you to use 'sg' to get the right
ownership/permissions for files created, the command called must be in
single quotes, as
38 3 * * * sg thisgroup 'csh script.csh'
|
|
|