Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Perl Service to monitor a user login

Status
Not open for further replies.

snivek

Programmer
Joined
Jul 3, 2006
Messages
3
Location
US
I was wondering if it is possible to have a perl script running as a service that can detect a user login. Is there some event trigger or sink it can monitor to detect when a user has logged in? I need to run a script as a service and then execute its tasks when a user logs in.
 
What O/S we talking about here?

you could query the process table, but the easiest way is probably to add some functionality to the logon script.

HTH
--Paul

Paul
------------------------------------
Spend an hour a week on CPAN, helps cure all known programming ailments ;-)
 
it would be for windows xp clients. if i cannot monitor some thread then worse case i was thinking of using the service to check that a script is setup for "all users" startup folder that would call an interactive portion of the services exe. Id rather be able to do it all through the service though as the is "cleaner". Thanks!
 
You could have the logon script invoke a service request to carry out your functionality.

You may have some luck after looking on as there's a plethora of Win32 scripts and modules which could help over there.

Reviewing the security event log would tell you when someone logged on and there's such a script is Dave Roth's repository ...

HTH

Paul
------------------------------------
Spend an hour a week on CPAN, helps cure all known programming ailments ;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top