Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Tue, 13 Jul 2004 08:33:12 -0400 (EDT)
From: Igor Pechtchanski <pechtcha@cs.nyu.edu>
Reply-To: cygwin@cygwin.com
To: Systemtechnik <technik@kreisbote.de>
cc: cygwin@cygwin.com
Subject: Re: access to event log of windows
In-Reply-To: <64A107CC-D498-11D8-B985-000393CE9342@kreisbote.de>
Message-ID: <Pine.GSO.4.58.0407130829130.29800@slinky.cs.nyu.edu>
References: <D69E8A13-D3CF-11D8-91ED-000393CE9342@kreisbote.de> <20040712090439.GW1389@cygbert.vinschen.de> <64A107CC-D498-11D8-B985-000393CE9342@kreisbote.de>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Scanned-By: MIMEDefang 2.39

On Tue, 13 Jul 2004, Systemtechnik wrote:

> Hello,
>
> >> is there a way to read/write from/to the event log of windows ?
> > syslog and vsyslog are implemented in Cygwin.  On NT they use the
> > event log system.
> You're right.
> But i think with syslog i can only write to the log.
> What i also need is to read from it :-)
> In other words: i'd like to scan NT eventlog for errors,
> programatically.

I have doubts there's a portable way to scan syslog programmatically.  If
you simply want to access the NT event log, look at the libwin32-perl
package (there may be other ways, too).
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
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/

