Re: TWAPI event log code



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|
+------------------------------------------------------------------------+
.