RE: Sending log file to an Email Address
- From: "Lunt, Nick" <Nick.Lunt@xxxxxxxxxxxxxx>
- Date: Fri, 21 Apr 2006 13:27:04 +0100
Hi Andrew,
-----Original Message-----
From: Andrew.Bridgeman@xxxxxxxxxxxxxx
[mailto:Andrew.Bridgeman@xxxxxxxxxxxxxx]
Sent: 21 April 2006 13:24
To: redhat-list@xxxxxxxxxx
Subject: Sending log file to an Email Address
Hello,
I currently run a script via cron on one of our Redhat
machines ( ES version 3) and wanted the output log file to be
sent to my
e-mail address so that the log can be checked easier and i so
i do not have
to login to the machine every morning. I am unsure if this
can be done but
if it can i wondered what other people had put in place to do this?
you could put the following at the end of your script
echo "Log File" | mutt -s "Log file attached" -a /your/log/file your.email.address
This will then email your logfile as an attachment as long as your system is setup correctly to send email.
Nick .
Wesleyan Administration Services Ltd registered number 5188850 and Wesleyan Unit Trust Managers Ltd registered number 2114859 ("WUTM Ltd") are wholly owned subsidiary companies of Wesleyan Assurance Society, whose registered number is ZC145. WUTM Ltd is a member of IMA. For ISA/PEP/Unit Trusts Administration Centre: PO Box 9033, Chelmsford, SM99 2WQ Telephone: 0870 601 6129 Wesleyan Assurance Society and WUTM Ltd are authorised and regulated by the Financial Services Authority. Head Office, Colmore Circus, Birmingham B4 6AR. Telephone: 0121 200 3003 Fax 0121 200 2971. Website: www.wesleyan.co.uk Telephone calls may be recorded for monitoring and training purposes.
CONFIDENTIALITY NOTICE
This communication and the information it contains is intended for the person or organisation to whom it is addressed. Its contents are confidential and may be protected in law. Unauthorised use, copying or disclosure of any of it may be unlawful. If you are not the intended recipient, please contact us immediately.
The contents of any attachments in this e-mail may contain software viruses, which could damage your own computer system. While every reasonable precaution to minimise this risk has been taken, we cannot accept liability for any damage that you sustain as a result of software viruses. You should carry out your own virus checking procedure before opening any attachment.
Delivered using mail2.wesleyan.co.uk
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
- Prev by Date: Sending log file to an Email Address
- Next by Date: Re: Fedora core and enterpriose version equivalence
- Previous by thread: Re: Sending log file to an Email Address
- Next by thread: RE: Sending log file to an Email Address
- Index(es):
Relevant Pages
- Re: Called ServiceBase.Run(), but never receive OnStart()?
... settings, most important of which for our purposes is the name of the ... On
the machines where this works, I see, in the logfile, the two ... Write a startup message
to the log file. ... But you are reading from the registry before you are actually
writing to the log file, what's important is to know the time you entered Main and the time at which
you are calling Run, the difference between those may not exceed 30 seconds. ... (microsoft.public.dotnet.languages.csharp) - Re: Errors Message from Webtrends Firewall Suite
... Firewall Suite and Firewall Appliance Analyzer keep track of how many ... records
in the log file were dropped due to being out of chronological ... The reason it
takes more memory is because whatever setting is entered ... One cause could be when multiple
machines record to one log, ... (comp.security.firewalls) - FOR command question
... windows 2000 and XP machines fill in these fields fine however my NT4 ...
I use the 'find' and 'for' commands on this log file a lot. ... so my tokens don't
get off? ... (microsoft.public.win2000.cmdprompt.admin) - Re: log4j and log file lock?
... We have a processor farm (currently 8 machines) running the same ... We use
log4j to record ... we'd like to use a single log file in a networked ...
which, if faster than the network ... (comp.lang.java.programmer) - Re: IIS W3SVC1 Log File with something else from buffer
... machines try to attack you with bufferoverflow techniques. ... > To me these
abnomal text are from memory buffer. ... >> Bernard Cheah ... >>>
Sometime I found on my IIS Log File some of other text added in. ... (microsoft.public.inetserver.iis.security)