Displaying 1 result from an estimated 1 matches for "tail_log".
Did you mean:
mail_log
2006 May 30
1
seg on windows-pr-0.5.1 (was RE: win32-eventlog 0.4.0)
...ntlog>
>
> my code looks like,
>
> #---
> threads = []
> while x = DATA.gets do
> eventlog,host = x.split
> printf "thread/tail-ing %s on %s\n",eventlog,host
> threads << Thread.new(eventlog,host) do |log,host|
> tail_log log,host
> end
> #tail_log eventlog, host
> end
> threads.each {|t| t.join}
> #---
>
> is tail thread-safe or do i need to run it separately for each host for the mean time?
Wow, I never imagined folks running a series of eventlogs in different
threads....