This is the mail archive of the
mailing list for the Cygwin project.
Re: Writing to the Windows Event Log
- From: Stephen Powell <stephen_powell at optusnet dot com dot au>
- To: cygwin at cygwin dot com
- Date: Fri, 20 Jun 2003 10:42:13 +1000
- Subject: Re: Writing to the Windows Event Log
- Cancel-lock: sha1:Gbzg1atcIEGR/UV6PuOd54NNaCU=
- Organization: Hail Eris!
- References: <21C1BC08EDD6F6489EC4C28E38E6AD2B0291F58F@EMAIL.lgmt.trdo>
On Thu, 19 Jun 2003, email@example.com wrote:
> I would like to be able to write to the Windows event application
> log with my shell scripts running on Cygwin. Any "tried and true"
> solutions would be appreciated.
/bin/logger is part of inetutils. You use it like
logger -p info -t "This is my Program" "This is my message"
The -p parameter is info, warn or error and is written to the type field.
The -t parameter is written into the source field of the event record.
The message is written to the description field of the event record.
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html