This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: access to event log of windows
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/