LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-11-2012, 06:57 AM   #1
Jhinukk
LQ Newbie
 
Registered: Jan 2012
Posts: 8

Rep: Reputation: Disabled
How to know whether a Linux box in a network is Idle or some user is using that


I am using a Linux box(Red Hat)in a network. I have written a script, by which I am doing a telnet to another box and checking whether that machine is idle or someone is working currently on that machine. I have used 'w' command for that. But it is showing only login information. Please suggest me the way that will give me the status of that machine(whether that machine is IDLE).
 
Old 01-11-2012, 08:40 AM   #2
rodrifra
Member
 
Registered: Mar 2007
Location: Spain
Distribution: Debian
Posts: 202

Rep: Reputation: 36
If you want to know if a user has launched a process and that process is running

[code]
ps -ef
[code]

will give you the processes running, and the first column will give you the user that launched each process, so you should be able to gather your information from there.

Last edited by rodrifra; 01-11-2012 at 08:42 AM.
 
Old 01-11-2012, 11:24 AM   #3
travisdh1
Member
 
Registered: Sep 2008
Distribution: Fedora
Posts: 129

Rep: Reputation: 22
Code:
who
Will give you a list of everyone that is logged into the system and what terminal/interface.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix authenticating user@domain and restrict user to access linux box LinuxGreen Linux - Newbie 1 12-16-2011 10:00 AM
irexec --daemon dies after box goes idle. engtech Ubuntu 0 06-19-2008 03:57 PM
User Privileges to network boot a Linux box fmcauley Linux - Newbie 2 01-09-2007 03:59 PM
5 httpd processes running on an idle box? J_Szucs Linux - Networking 2 04-07-2003 08:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:15 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
Open Source Consulting | Domain Registration