- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Idle or process running
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2002 07:15 AM
05-01-2002 07:15 AM
Idle or process running
Please someone help its urgent!!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2002 07:20 AM
05-01-2002 07:20 AM
Re: Idle or process running
There will always be some processes running even when the system is "isle".
What you need to do is list the processes & search for the process in question. If you know the process_name then do
ps -ef | grep process_name
If you don't know the process name but do know the username then do
ps -ef | grep username
This will list all processes started by username.
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2002 07:21 AM
05-01-2002 07:21 AM
Re: Idle or process running
Try these commands:
# ps -aef | grep term_name
# whodo
# gpm
HTH,
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2002 07:24 AM
05-01-2002 07:24 AM
Re: Idle or process running
ps -t tty?? (for tty in question to get user)
ps -eaf | grep
ps -eaf | grep
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2002 07:25 AM
05-01-2002 07:25 AM
Re: Idle or process running
readonly TMOUT=300
after 5 minutes of inactivity at a SHELL prompt ONLY, it will log them out!
If they are using anything, like vi, emacs, piping output to more, whatever, they will not be logged out.
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2002 08:19 AM
05-01-2002 08:19 AM
Re: Idle or process running
So the problem is more complicated than the simple w command can handle. Instead, you'll want to look at processes owned by each user, something like this:
UNIX95= ps -e -o time,ruser,args | sort -r | more
which sorts all the processes by amount of time accumulated. Or you could:
UNIX95= ps -e -o time,ruser,args | grep -v root | sort -r | more
to get rid of all the root processes. Or you could summarize by each user:
UNIX95= ps -e -o time,ruser,args | grep -v root | sort -r | more
Now, knowing which user is accumulating lots of time is not necessarily the best way to eliminate a performance issue unless there is a runaway program...but then it would pop to the top of the above lists.
Bill Hassell, sysadmin