Re: [CentOS] use of MAILTO variable in crontab

2011-07-15 Thread Tony Mountifield
In article <22f345fb082accaea3abb2d0e9db0134.squir...@www.bubbanfriends.org>, Mike Burger wrote: > > > On Wed, Jul 13, 2011 at 9:10 PM, James B. Byrne > > wrote: > >> > >> On Wed Jul 13 15:03:40 EDT 2011, Michael Best mbest at pendragon.org > >>  wrote: > >>> Like this: > >>> > >>> MAILTO=testad

Re: [CentOS] use of MAILTO variable in crontab

2011-07-14 Thread Rudi Ahlers
On Thu, Jul 14, 2011 at 7:28 PM, Mike Burger wrote: > >> On Wed, Jul 13, 2011 at 9:10 PM, James B. Byrne >> wrote: >>> >>> On Wed Jul 13 15:03:40 EDT 2011, Michael Best mbest at pendragon.org >>>  wrote: Like this: MAILTO=testaddr at harte-lyne.ca 30 2 * * * echo "this should

Re: [CentOS] use of MAILTO variable in crontab

2011-07-14 Thread Mike Burger
> On Wed, Jul 13, 2011 at 9:10 PM, James B. Byrne > wrote: >> >> On Wed Jul 13 15:03:40 EDT 2011, Michael Best mbest at pendragon.org >>  wrote: >>> Like this: >>> >>> MAILTO=testaddr at harte-lyne.ca >>> 30 2 * * * echo "this should be mailed" >> >> That sets MAILTO for the entire crontab does i

Re: [CentOS] use of MAILTO variable in crontab

2011-07-14 Thread Rudi Ahlers
On Wed, Jul 13, 2011 at 9:10 PM, James B. Byrne wrote: > > On Wed Jul 13 15:03:40 EDT 2011, Michael Best mbest at pendragon.org >  wrote: >> Like this: >> >> MAILTO=testaddr at harte-lyne.ca >> 30 2 * * * echo "this should be mailed" > > That sets MAILTO for the entire crontab does it not?  I want

Re: [CentOS] use of MAILTO variable in crontab

2011-07-14 Thread Michael Best
On 07/13/2011 01:10 PM, James B. Byrne wrote: > > On Wed Jul 13 15:03:40 EDT 2011, Michael Best mbest at pendragon.org > wrote: >> Like this: >> >> MAILTO=testaddr at harte-lyne.ca >> 30 2 * * * echo "this should be mailed" > > That sets MAILTO for the entire crontab does it not? I want to set >

Re: [CentOS] use of MAILTO variable in crontab

2011-07-13 Thread Devin Reade
If you want the output of your cronjob to go to a particular place that is a bit too inconvenient to do using the built-in functionality, put a script around your commands and handle the mailing yourself. This is a good general rule whenever something you want to run from cron is not trivial (in t

Re: [CentOS] use of MAILTO variable in crontab

2011-07-13 Thread James B. Byrne
On Wed Jul 13 15:30:30 EDT 2011, Brunner, Brian T. BBrunner at gai-tronics.com wrote: > > Note: The script that you trigger (a wrapper for the command > you really want to run) can have the per-command peculiarities > in it. > Also: the command in the crontab file can look like 'cmd | > mail -s "Su

Re: [CentOS] use of MAILTO variable in crontab

2011-07-13 Thread Brunner, Brian T.
centos-boun...@centos.org wrote: > On Wed Jul 13 15:03:40 EDT 2011, Michael Best mbest at pendragon.org > wrote: >> Like this: >> >> MAILTO=testaddr at harte-lyne.ca >> 30 2 * * * echo "this should be mailed" > > That sets MAILTO for the entire crontab does it not? I want to set > MAILTO differ

Re: [CentOS] use of MAILTO variable in crontab

2011-07-13 Thread m . roth
James B. Byrne wrote: > > On Wed Jul 13 15:03:40 EDT 2011, Michael Best mbest at pendragon.org > wrote: >> Like this: >> >> MAILTO=testaddr at harte-lyne.ca >> 30 2 * * * echo "this should be mailed" > > That sets MAILTO for the entire crontab does it not? I want to set > MAILTO differently for s

Re: [CentOS] use of MAILTO variable in crontab

2011-07-13 Thread James B. Byrne
On Wed Jul 13 15:03:40 EDT 2011, Michael Best mbest at pendragon.org wrote: > Like this: > > MAILTO=testaddr at harte-lyne.ca > 30 2 * * * echo "this should be mailed" That sets MAILTO for the entire crontab does it not? I want to set MAILTO differently for specific crontab entries. Is that po

Re: [CentOS] use of MAILTO variable in crontab

2011-07-13 Thread Michael Best
On 07/13/2011 12:37 PM, James B. Byrne wrote: > I want to do something like this: > > 30 2 * * * MAILTO=testa...@harte-lyne.ca; echo "this should be mailed" > > I have searched extensively and from what I have read I believe that > this should work. But evidently I misapprehend how cron and MAILTO

[CentOS] use of MAILTO variable in crontab

2011-07-13 Thread James B. Byrne
I want to do something like this: 30 2 * * * MAILTO=testa...@harte-lyne.ca; echo "this should be mailed" I have searched extensively and from what I have read I believe that this should work. But evidently I misapprehend how cron and MAILTO is supposed to work as my example does not cause any ma