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

Home » Public Forums » archive » Re: idl -quiet command-line option doesn't work in cron
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: idl -quiet command-line option doesn't work in cron [message #67434 is a reply to message #67413] Thu, 23 July 2009 11:34 Go to previous message
Bringfried Stecklum is currently offline  Bringfried Stecklum
Messages: 75
Registered: January 1996
Member
Ed Hyer wrote:
> I created a save file 'routine.sav', and am running it in cron, like
> this:
>
> idl -quiet -queue -rt=routine.sav > log.txt
>
> So, in Linux terms, STDOUT is sent to log.txt, and STDERR goes into an
> email to me from the system. I like this, because I have a quick place
> to check if anything went wrong.
>
> The reason for -quiet is to suppress the startup message, which goes
> to STDERR when you start IDL:
>
> IDL Version 7.0.6 (linux x86_64 m64). (c) 2008, ITT Visual Information
> Solutions Installation number:.
>
> This works from the command line, but when I put it into cron, I still
> get the message, sent to me in an email from cron.
>
> Any ideas?
>
>
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

to avoid any message being sent to you. If you still want stderr to be mailed
just use 1> /dev/null.

Regards, Bringfried
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Memory Leak
Next Topic: More that 2800 Solutions Manuals (Part 1)

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

Current Time: Tue Oct 21 05:48:36 PDT 2025

Total time taken to generate the page: 0.28889 seconds