Sponsored Content
Operating Systems SCO Identifiy and Kill Idle Unix(SCO) Process called externally Post 45383 by vbalajis on Friday 19th of December 2003 04:33:30 AM
Old 12-19-2003
Data Identifiy and Kill Idle Unix(SCO) Process called externally

Hi,


Please let us know of any possiblity of identifying and killing unix proces invoked externally (by an external tool which does not create a session). 'who' command gives idle time of sessions. But what we are looking for is idle time of a process. 'ps' command gives the elapsed/running time of a process but not the idle time.

Thanks in Advance,

Balaji
 

10 More Discussions You Might Find Interesting

1. HP-UX

Is there a script available to kill Idle users

My max user parm is set to 1050. I'm currently at 1038 this is causing major slow downs on the server. I looking for a way log off "idle" user logins with out having to do it individually. :confused: (5 Replies)
Discussion started by: rfmurphy_6
5 Replies

2. HP-UX

kill idle users

Hi, In my network we uses the NetTerm program to connect us to HP-UX 10.x server from windows workstations, but in some cases the user doesn't logout and close it by window's x button. The problem is that in HP-UX the user and all his tasks remain active and when he enter again HP-UX creates a... (12 Replies)
Discussion started by: efrenba
12 Replies

3. Shell Programming and Scripting

How to kill process after x idle min?

I need a script to kill those process id whose idle time is more than 30min plz help me (3 Replies)
Discussion started by: salil2012
3 Replies

4. AIX

Kill IDLE Process using script !!!

Dear Friends , I am using DB2 database in AIX 5.3 server . In my server some IDLE process are generated after several times which I need to kill it manually each and every time . The process I query like following : root@bagpuss $ ps auxw|sort -r +3|head -10 USER PID %CPU %MEM ... (3 Replies)
Discussion started by: shipon_97
3 Replies

5. Shell Programming and Scripting

Shell Script to Kill Process(number of process) Unix/Solaris

Hi Experts, we do have a shell script for Unix Solaris, which will kill all the process manullay, it used to work in my previous env, but now it is throwing this error.. could some one please help me to resolve it This is how we execute the script (and this is the requirement) ... (2 Replies)
Discussion started by: jonnyvic
2 Replies

6. Shell Programming and Scripting

Kill idle script is killing unnecessarly

Hi All,I have a problem with my kill idle script.my script is supposed to kill the user sessions which are idle for more than 2 hours.But is is killing the sessions which are idle for less than 2 hrs also.I dont know the exact time after which the script is killing,but it is less than 2 hours i am... (3 Replies)
Discussion started by: prabhu_kumar
3 Replies

7. Solaris

Kill idle dt session

Hi, i need to kill the idle dt sessions through script, can anyone tell me how to do? RJS (2 Replies)
Discussion started by: rajasekg
2 Replies

8. Shell Programming and Scripting

User idle time and kill

Hello.. I have many sleepy users on my Solaris box and need to kill them if they are idle for more than 45 minutes for example...I know who -u gives and the idle time but unable to make a awk line to get the condition perfect. Please help...:wall: (9 Replies)
Discussion started by: wimaxpole
9 Replies

9. Shell Programming and Scripting

Kill idle Process using a script

Hi, I need a script that can automatically kill all processes named "webrepn" and "webrebw" if idle for more than 30 minutes. Then I will have a Cron Job to run the script every night or 2-3 times a day depends on how this script helps. Right now, I run "ps -ef | grep webrebn" and "kill -9... (7 Replies)
Discussion started by: MaggieL
7 Replies

10. UNIX for Beginners Questions & Answers

Idle command to kill the process running n unx box machine

Hi Team , I have one process named as cec_analysiseool that is running on unix box machine now i want to kill this process so please advise what will be the ideal command to kill this , what i have tried is :confused: kill -9 `ps -ef | grep cec_analysiseool | grep -v grep | awk '{print $2}'` (2 Replies)
Discussion started by: unclesamm
2 Replies
sb2-session(1)						       sb2-session man page						    sb2-session(1)

NAME
sb2-session - manage scratchbox2 sessions SYNOPSIS
sb2-session [COMMAND [PARAMS]] DESCRIPTION
sb2-session is used to create attachable scratchbox2 sessions. You can save session even when you haven't done '-S session' during sb2 startup. Note that you can give parameters to attach command which are passed verbatim to sb2. If there is only one session to attach, it is selected automatically. If no command is given, help text is printed. COMMANDS
help shows help text save saves current session list lists detached sb2 sessions delete SESSION deletes given session attach [SESSION [PARAMS]] attaches to a given session setenv VARIABLE VALUE store a value for an environment variable showenv show stored environment variables EXAMPLES
Basic usage is: [SB2 .. ] $ sb2-session save # save session [SB2 .. ] $ ^D # exit Later we can then attach to this session: % sb2-session attach If there are more than one saved session, then: % sb2-session list session.XXXX TARGET_ARM My Comment session.YYYY TARGET_ARM My Comment 2 session.ZZZZ TARGET_MIPS % sb2-session attach session.YYYY Here we pass '-eR' to sb2 and we only have one saved session: % sb2-session attach -- -eR '--' marks end of parameter list for sb2-session. setenv VARIABLE VALUE can be used to add environment variables, that will become active when a saved session is later taken into use (either by sb2-session attach or by sb2 -J). setenv VARIABLE VALUE does not change environment of sessions that are already active. showenv lists environment variable settings which have been stored with this tool. It does not show environment variables from other sources. SEE ALSO
sb2(1) AUTHOR
Mika Westerberg 2.2 21 December 2010 sb2-session(1)
All times are GMT -4. The time now is 01:03 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy