List Info

Thread: tailing error




tailing error
user name
2006-05-10 02:18:27
Hi Daniel and win32 team,

I have the ff code.

C:\ruby\win-eventlog>cat test4.rb
require 'win32/eventlog'
include Win32

# Tail the event logs

EventLog.open('Security').tail{ |log|
   p 'changed noted!' if /account (changed|disabled)/i =~
log.description
   p log
}


and I'm gettting the error (if i trigger a change, eg,
change an account password),

C:\ruby\win-eventlog>ruby test4.rb
test4.rb:7:in `tail': Insufficient system resources exist
to complete the requested service. (Win32::EventLogError)
        from test4.rb:7


hope you could give me some hints on proper tailing the
security log.
thank you.

kind regards -botp


_______________________________________________
win32utils-devel mailing list
win32utils-develrubyforge.org
http://rubyforge.org/mailman/listinfo/win32utils-devel
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )