This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Writing to the Windows Event Log


On Thu, 19 Jun 2003, tsiegel@intrado.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.

-- 
Stephen Powell
stephen_powell@optusnet.com.au


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]