>
>> > Those who live in glass houses and so forth. Can we try to keep a
>> > civil tongue, at least when you have your foot in your mouth?
>>
>> Can I use your response as an example of civility?
>
> Absolutely.
>
> You gave advice that
> a) didn't do what was expected (generate an email only on
Stephen Gran said:
> On Sun, May 29, 2005 at 03:29:03PM -0700, Dennis Peterson said:
>> Stephen Gran said: And I said in the next post this is not the way I'd
>> do it. And you've spoiled the fun that was sure to come in the OP's
>> next question, so let's get right to the issue at hand.
>
> I am n
On Sun, May 29, 2005 at 03:29:03PM -0700, Dennis Peterson said:
> Stephen Gran said: And I said in the next post this is not the way I'd
> do it. And you've spoiled the fun that was sure to come in the OP's
> next question, so let's get right to the issue at hand.
I am not sure what the point of g
Stephen Gran said:
> On Sun, May 29, 2005 at 01:42:32PM -0700, Dennis Peterson said:
>> You could try a trivial example by creating a cron job that will fail.
>> This can be done by requesting execution of a process that doesn't
>> exist.
>>
>> * * * * * /tmp/junk 2>$1 |/usr/bin/mail -s "this is a
On Sun, May 29, 2005 at 01:42:32PM -0700, Dennis Peterson said:
> You could try a trivial example by creating a cron job that will fail.
> This can be done by requesting execution of a process that doesn't exist.
>
> * * * * * /tmp/junk 2>$1 |/usr/bin/mail -s "this is a test" [EMAIL PROTECTED]
>
On Sun, May 29, 2005 at 09:15:46PM +0100, Timothy Omer said:
> Thank you all for your help, MAILTO does seem to work. I will try the
> suggestion above as I can add my own subject.
Good. This is the simplest, unless you are managing a farm of multiple
platforms and need a script that works on all
Timothy Omer said:
>
> Thank you all for your help, MAILTO does seem to work. I will try the
> suggestion above as I can add my own subject.
>
> Not sure what 2>&1 does, is there any way I can create an error to test
> this? (Obviously I can not disconnect the internet to create an update
> error,
Damian Menscher said:
> On Sun, 29 May 2005, Dennis Peterson wrote:
>> Timothy Omer said:
>>>
>>> 15 */4 * * */usr/local/bin/freshclam --quiet || mail -s "There has been
>>> an
>>> error updating ClamAV on the Office Server" [EMAIL PROTECTED] <
>>> /var/log/clamav/freshclam.log
>>
>> use:
>> 15 */4
Uhh, unless I'm missing something obvious, that would send an email
every 4 hours, usually with no message body, but containing one when
there were errors. Definitely NOT what is desired.
Or perhaps your mail command works differently than mine?
Damian Menscher
--
-=#| Physics Grad Student &
use:
15 */4 * * */usr/local/bin/freshclam --quiet 2>&1 | mail -s "There has
been an error updating ClamAV on the Office Server" [EMAIL PROTECTED]
This should send stderr output to mail and will contain the error message.
There is no stdout to capture because of the --quiet parameter.
Simpler eve
On Sun, 29 May 2005, Dennis Peterson wrote:
Timothy Omer said:
15 */4 * * */usr/local/bin/freshclam --quiet || mail -s "There has been an
error updating ClamAV on the Office Server" [EMAIL PROTECTED] <
/var/log/clamav/freshclam.log
use:
15 */4 * * */usr/local/bin/freshclam --quiet 2>&1 | mail
Timothy Omer said:
> Hello everyone,
>
>
>
> I have been asking on the forms and trying to solve this problem for a few
> weeks now - I hope you can help me.
>
>
>
>>From cron I run freshclam every 4 hours with the following command.
>
>
>
> 15 */4 * * */usr/local/bin/freshclam --quiet || mail -s "
On Sun, May 29, 2005 at 01:58:00PM -0500, Damian Menscher said:
> I'm not certain the MAILTO construct will work to send the output of
> different commands to different users, or if it's set for the entire
> crontab. (It will probably work, I just haven't tried it personally.)
The following for
On Sun, 29 May 2005, Timothy Omer wrote:
On Sun, May 29, 2005 at 07:24:46PM +0100, Timothy Omer said:
> Thank you for your response Damian, I should have been clearer - the email
> needs to be sent to an external address.
I don't know about your implementation of cron, but mine supports the
MAIL
On Sun, May 29, 2005 at 07:24:46PM +0100, Timothy Omer said:
> Thank you for your response Damian, I should have been clearer - the email
> needs to be sent to an external address.
I don't know about your implementation of cron, but mine supports the
MAILTO environment variable for exactly this s
On Sun, May 29, 2005 at 07:24:46PM +0100, Timothy Omer said:
> Thank you for your response Damian, I should have been clearer - the email
> needs to be sent to an external address.
I don't know about your implementation of cron, but mine supports the
MAILTO environment variable for exactly this so
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Damian Menscher
Sent: 29 May 2005 19:17
To: ClamAV users ML
Subject: Re: [Clamav-users] freshclam - on error send email
On Sun, 29 May 2005, Timothy Omer wrote:
>> From cron I run freshclam every 4
On Sun, 29 May 2005, Timothy Omer wrote:
From cron I run freshclam every 4 hours with the following command.
15 */4 * * */usr/local/bin/freshclam --quiet || mail -s "There has been an
error updating ClamAV on the Office Server" [EMAIL PROTECTED] <
/var/log/clamav/freshclam.log
Im sure that man
Hello everyone,
I have been asking on the forms and trying to solve this problem for a few
weeks now - I hope you can help me.
>From cron I run freshclam every 4 hours with the following command.
15 */4 * * */usr/local/bin/freshclam --quiet || mail -s "There has been an
error updating C
19 matches
Mail list logo