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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

make a deamon...

Status
Not open for further replies.

avalosgl

IS-IT--Management
Aug 10, 2001
7
0
0
MX
hi...

somebody can help me....

I need to create a deamon that it send me a e-mail when some user acces the system...

i don't want to use the crontab or the /etc/profile

thank you..

 
One solution involves writing a program that will continually scan the process table for any given username other than the ones normally there when the system is not being accessed. The program will scan, send email if necessary, and then sleep for a few seconds.

Start the program in the form 'nohup program-name [arguments]'. Nohup allows the program to continue running even after you log off. Alternatively, just start it in your init scripts.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top