Re: Suppress email output of crontab job




"Michael Vilain" <vilain@xxxxxxxxxxxxx> wrote in message
news:vilain-E8020C.12313314082008@xxxxxxxxxxxxxxxxxxxxxxxxxxx
In article <g81voi$roj$1$8302bc10@xxxxxxxxxxxxxxxx>,
Martin Smith <mjs01@xxxxxxxxxxxxxxxxxx> wrote:

Michael Vilain wrote:
In article <tuSdnR1dSqC1uDnVnZ2dnUVZ_tHinZ2d@xxxxxxxxxxxxx>,
"Jack B. Pollack" <N@xxxxxxxxxx> wrote:

I am trying to suppress the emailing of a particular crontab job.
When I try to redirect the output to /dev/null I get a permission
denied in
the email message.

How can I suppress the emailing of this job? I dont want to change
file/folder permissions to do it.

Thanks

AFAIK, there's no environment variable to suppress cron from sending
mail. Best you can do is ensure your single-line command or script
returns no value or output. This is typically done using Borne shell
redirect at the end of the line -- e.g. "> /dev/null 2>&1".

Actually the traditional FBSD way to do this is to have
mailto=""

Thanks guys for posting. Both the Mailto="" and the "> /dev/null 2>&1" dont
help. Still getting messages.
See my reply to Greg Pratt I am going to post details.


.



Relevant Pages

  • Suppress email output of crontab job
    ... I am trying to suppress the emailing of a particular crontab job. ... When I try to redirect the output to /dev/null I get a permission denied in ...
    (comp.sys.mac.system)
  • Re: Suppress email output of crontab job
    ... When I try to redirect the output to /dev/null I get a permission denied in ... the email message. ... How can I suppress the emailing of this job? ... there's no environment variable to suppress cron from sending mail. ...
    (comp.sys.mac.system)
  • Re: Suppress email output of crontab job
    ... When I try to redirect the output to /dev/null I get a permission ... How can I suppress the emailing of this job? ... Send responses to the relevant news group rather than to me, ... Use a real news client if you want me to see your posts. ...
    (comp.sys.mac.system)
  • Re: Its still all about me...
    ... Emailing me your phone # is the only possibility. ... What does it accomplish? ... I don't want to include your picture in it if you don't want that. ... I'll call, briefly, you verify you're chuck and give me permission. ...
    (rec.arts.poems)
  • file redirection
    ... We would like to lock ... I configured the GP to redirect the desktop folder to ... Failed to perform redirection of desktop, Blah Blah, Access denied. ... I check the permission of the share and system has full control, ...
    (microsoft.public.windows.group_policy)