LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Hi, Simple networking help please (https://www.linuxquestions.org/questions/linux-networking-3/hi-simple-networking-help-please-221205/)

WarriorWarren 08-23-2004 03:36 AM

Hi, Simple networking help please
 
Hi,

I need to write a script that can list all people on my network.

I need to further that by writing a script that will tell me who is logged into my machine, what they are doing on my system.

Extend it to run every hour and record the results to file including date and time and then extend it once further to mail me the current log file.

If anyone could help I would appreciate it

ppuru 08-23-2004 06:58 AM

you can use the w or who command to check the people that are logged on to you system. You can use the ps -U <username> to check what a user is doing

also check the commands lsof and fuser

use cron to run your script at regular intervals (crontab )


All times are GMT -5. The time now is 06:47 AM.