Re: TWAPI event log code
- From: "Gerald W. Lester" <Gerald.Lester@xxxxxxx>
- Date: Wed, 30 Aug 2006 21:57:50 -0500
ejcottrell@xxxxxxxxxxx wrote:
Does anyone have experience coding with the TWAPI functions? I am
trying to figure out if it is possible to remotely access the event
viewer of another computer. Sample scripts would be great.
Did you look at the documentation at http://twapi.sourceforge.net/ ???
Here is a sample script:
package require twapi
set ehd [twapi::eventlog_open -source {\\RemoteNode}]
while {[llength [set dataList [twapi::eventlog_read $ehd]]]} {
foreach record $dataList {
puts stdout $record
}
}
twapi::eventlog_close $ehd
--
+--------------------------------+---------------------------------------+
| Gerald W. Lester |
|"The man who fights for his ideals is the man who is alive." - Cervantes|
+------------------------------------------------------------------------+
.
- Follow-Ups:
- Re: TWAPI event log code
- From: palmtcl
- Re: TWAPI event log code
- References:
- TWAPI event log code
- From: ejcottrell
- TWAPI event log code
- Prev by Date: Re: Loading large data sets
- Next by Date: Re: TWAPI event log code
- Previous by thread: TWAPI event log code
- Next by thread: Re: TWAPI event log code
- Index(es):