- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Kill Users process
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
Discussions
Discussions
Forums
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
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
тАО09-28-2005 06:50 PM
тАО09-28-2005 06:50 PM
Re: Kill Users process
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-28-2005 07:02 PM
тАО09-28-2005 07:02 PM
Re: Kill Users process
You are not reading the replies carefully.
As such there is no magic wand to kill processes based on their state. (because they change very fast. and very fast means almost not catchable and noticable)
If you open a telnet session and just start vi and do nothing further, it is still a active session for system. But in fact it is inactive session because nothing is happening in vi. Said that, you need to way to decide (from apps/program side) to say that it is inactive.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-29-2005 07:09 AM
тАО09-29-2005 07:09 AM
Re: Kill Users process
This type of request seems to come up over and over -- unfortunately, I only know of one public tool that does a pretty good job of actively controlling user sessions.
http://www.darkwing.com/idled/
I haven't used it much myself, and it may need some tweaking to compile on HP-UX. But give it a shot.
I wish I could help you with your script, but there really isn't any safe and easy way to script everthing that you want to do...at least not one that I would feel comfortable with. :-) If you still want suggestions on how to parse output from ps, that's fine, we can help. Otherwise, I suggest a long look at idled (or perhaps write a similar program like it).
-- Tom
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-29-2005 09:00 AM
тАО09-29-2005 09:00 AM
Re: Kill Users process
You use the term "inactive session". You seem to be defining an inactive session as any processes or logins that are running but that no human is currently using. The system doesn't and can't know if there is a person sitting there or not.
Inactive in this case is your term, not the systems, so, there are no switches in the ps command that can identify if a "session" is "inactive" or not
You will have to decide what the criteria are that makes a session active or inactive. Once you decide what the criteria are you can find a way to identify them perhaps by tty or something and go from there.
It may also help if you gave us a little more detail about what a "session" is. Do the users login with a terminal, a terminal session from a pc, to they access the system through some x terminal program or are processes spawned for them from a client server type application that doesn't require them to login to the server through the usual login process?
Its not that we don't want to help you,
Based solely on the information you have given you may have to write a script that goes through each user for processes and use the start time of the process and eliminate all but the most recent. The problem with that is, a user may create a session, move to another location, create another session, go somewhere else and create a third, then come back to the second. The system has no way of knowing that, it├в s the chance you have to take unless you can use tmout to kick them off based on idle time
I know that doesn't help much but├в ┬ж├в ┬ж
Howard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-29-2005 11:10 AM
тАО09-29-2005 11:10 AM
Re: Kill Users process
But you know sometimes some people just want a fish & could care less when you're trying to taech them the finer points of casting....
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-29-2005 03:52 PM
тАО09-29-2005 03:52 PM
Re: Kill Users process
I got it clearly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-30-2005 01:42 AM
тАО09-30-2005 01:42 AM
Re: Kill Users process
The characters after that last sentence were not typed as displayed. What I typed was a series of periods but I guess because I write stuff in word for the spelling correction it translated it wrong, in this case it seems a little vulgar and I apologize for that.
H
- « Previous
-
- 1
- 2
- Next »