Re: idl -quiet command-line option doesn't work in cron [message #67412 is a reply to message #67406] |
Fri, 24 July 2009 10:28   |
Bringfried Stecklum
Messages: 75 Registered: January 1996
|
Member |
|
|
Edward Hyer wrote:
> On Jul 23, 11:34 am, Bringfried Stecklum <steck...@tls-tautenburg.de>
> wrote:
>> You have to redirect the output in /etc/crontab, like
>>
>> # m h dom mon dow user command
>> 25 6 * * * hyer idl -quiet -queue -rt=routine.sav &> /dev/null
>>
>
> Ah, but I *want* the output (to my logfile) and I *want* the errors
> (to my email). What I do not want is the IDL startup message. The
> command line option -quiet, exists for exactly this reason, and it
> works-- except, for some reason, it doesn't work in cron. Puzzling.
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.
|
|
|