Alternatively, if your domain structure is not complicated (in WinNT world), you can parse the netlog log file on your domain controller to look for your specific user (just the basic text matching that perl is so good for, need no Win specific modules here); if the match is positive, you can have the script fire an email using mail modules. This becomes a little bit more complicated if you have to poll every domain controller in a large network.
"DePriest, Jason R." <[EMAIL PROTECTED]> wrote:
To be really complicated, you could have a perl script that you convert into a service (using Win32::Daemon or PerlSvc) that checks the server Event Log every couple of minutes (using Win32::EventLog). You could write the times to a text file or something so that you are only checking the Event Log for the time slice since your last check.
Then you could use any of the multitude of mail modules for perl to send of a mail message if they guy is found.
-Jason
-----Original Message-----
From: Jason Scott Gessner [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 12, 2002 03:31 PM
To: [EMAIL PROTECTED]
Subject: Email alert for user logon
Hi all!
Is there an easy way to fire off an email if a certain user logs on?
I think it could be done by periodically checking the logged on users,
but I only want 1 email for logon, 1 for logoff for a specific user.- jason scott gessner
[EMAIL PROTECTED]_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
