Automatic Kill -help


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Automatic Kill -help
# 1  
Old 07-01-2005
Question Automatic Kill -help

Hello

We are using UNIX, (?) there were reports to us thAt their login was automatically killed, however we (root) did not issue a kill -9 PID, can anyone give me an idea what happen. To add, the user is not idled, he is actually doing something.

also, i search all the thread, donno if i missed one,
i wanted to know how to automatic kill a login in a specified time (say 60mins)
i tried the TMOUT but it does not work. i added the command in the .profile of the user.

Thanks in advance. Smilie
# 2  
Old 07-02-2005
Please post the output of the uname -a command, so we know which UNIX you're working with.

Cheers
ZB
# 3  
Old 07-02-2005
Re: Automatic Kill -help

Hi,
here is the output

SCO_SV new 3.2 5.0.6 i386

Thanks Smilie
# 4  
Old 07-03-2005
check the value of TIMEOUT of your shell
# 5  
Old 07-03-2005
Hi,

Sorry i am just new in UNIX scripting. Did i made it right. I add the 2 lines in users .profile


PS1="`logname` $ "
TERM=ansi
DLC=/usr/dlc
PATH=$PATH:$HOME/bin:/cpu/mn:$DLC/bin: # set command search path
MAIL=/usr/spool/mail/`logname` # mailbox location
export PATH MAIL TERM DLC
mesg -y
stty intr ^C
TMOUT=3
readonly TMOUT
echo $TMOUT


Say after 3 mins it will automatically logged out. right?
Nothing happened, listing the user:

# s
# who -u |grep lance
lance ttyp3 Jul 3 18:43 0:17 26158
# w |grep lance
lance ttyp3 6:43pm 18 - - dd bs=1 count=1


Did i miss something? Or it does worked in our version?

Thanks
# 6  
Old 07-03-2005
to the end of all that, add

export TMOUT

Also, i'd change that TMOUT value. 3 seconds might be a little optimistic for most users typing abilities....

Cheers
ZB
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. HP-UX

System not responding and Automatic process kill

Hi All, One of our servers stopped responding , unable to take any logins into it, the response is almost nil...later it resumed Also during this time one of our application processes which was costly on memory got killed..is it an OOM kill? Would like to know to know how to avoid such... (4 Replies)
Discussion started by: baanprog
4 Replies

2. Shell Programming and Scripting

Kill an specific process ID using the KILL and GREP commands

Good afternoon I need to KILL a process in a single command sentence, for example: kill -9 `ps -aef | grep 'CAL255.4ge' | grep -v grep | awk '{print $2}'` That sentence Kills the process ID corresponding to the program CAL255.4ge. However it is possible that the same program... (6 Replies)
Discussion started by: enriquegm82
6 Replies

3. Solaris

Cannot kill a process with kill -9

Hello everyone, I have a process that I want to kill. I have tried kill-9 PID but it doesn't work. I have tried preap PID but it doesn't work too. The parent of my process is the process whose PID is 1, so I can't kill it. My OS is a Solaris 9. Can anyone help me understand what's going... (3 Replies)
Discussion started by: adilyos
3 Replies

4. Shell Programming and Scripting

[REQ] Automatic script kill process

HI, I'm using CentOS 5.1 x86_64, CPanel .. a lot of my users used too much resource, i want to write a script to kill all of them. Eg: LFD always notify me: Time: Sun Apr 27 07:40:08 2008 Account: xxxx (my user) Resource: Virtual Memory Size Exceeded: 110 > 100 (MB)... (3 Replies)
Discussion started by: onisoc
3 Replies

5. Linux

Kill a process without using kill command

I want to Kill a process without using kill command as i don't have privileges to kill the process. I know the pid and i am using Linux 2.6.9 OS. (6 Replies)
Discussion started by: sudhamacs
6 Replies

6. Shell Programming and Scripting

Kill a process without using kill command

Sorry, posted the question in other forum. (0 Replies)
Discussion started by: sudhamacs
0 Replies

7. UNIX for Advanced & Expert Users

Diff b/n kill and kill -9

Hi, I have a process with say pid x. What is the difference b/n kill x and kill -9 x in unix Thanks Ammu (2 Replies)
Discussion started by: ammu
2 Replies

8. Programming

kill(0,-9) don't kill the process

Hi all i have simple c program , when i wish to kill the app im using kill(0,-9) , but it seams this command don't do any thing and the program. just ignore it . what im doing wrong here ? im using HP-UX ia64 Thanks (9 Replies)
Discussion started by: umen
9 Replies

9. UNIX for Dummies Questions & Answers

not able to kill find with kill -9

Hello everyone I am using HP Ux and had run a find command. Now I am trying to kill it with kill or kill -9 but it is not getting killed and still running. Any clues ? Thanks Sidhu (5 Replies)
Discussion started by: Amardeep
5 Replies

10. UNIX for Advanced & Expert Users

When kill doesnt work, how to kill a process ?

Hi All, I am unable to kill a process using kill command. I am using HP-UX system. I have tried with kill -9 and i have root privilages. How can i terminate this daemon ? ? ? Regards, Vijay Hegde (3 Replies)
Discussion started by: VijayHegde
3 Replies
Login or Register to Ask a Question