Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Write to WIndows Event Log

by InfiniteSilence (Curate)
on Sep 09, 2005 at 20:14 UTC ( #490738=note: print w/ replies, xml ) Need Help??


in reply to Write to WIndows Event Log

Hey, the POD of Win32::EventLog show how you can READ from the Event Viewer, not write to it. Perhaps I read your question incorrectly? In which case I apologize, but you can write to it very easily:

#!/usr/bin/perl -w use strict; use Win32::OLE; my ($app)=Win32::OLE->new("WScript.Shell"); $app->LogEvent(4,"You know it man!"); 1;

Celebrate Intellectual Diversity


Comment on Re: Write to WIndows Event Log
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://490738]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (7)
As of 2015-07-08 03:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (93 votes), past polls