LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-23-2004, 04:36 AM   #1
WarriorWarren
LQ Newbie
 
Registered: Apr 2003
Posts: 17

Rep: Reputation: 0
Exclamation 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
 
Old 08-23-2004, 07:58 AM   #2
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
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 )
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
simple networking in c++ caminoix Programming 6 07-04-2005 03:32 PM
Simple Networking Pen Linux - Networking 7 09-09-2004 10:27 PM
Simple Networking Question Kroenecker Linux - Networking 3 07-15-2004 09:25 AM
Simple networking jmweb Linux - Networking 6 09-21-2003 02:56 PM
simple networking...please! g4hlr Linux - Newbie 2 09-15-2003 08:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration