who -uH, kill the process at different pts/tb


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers who -uH, kill the process at different pts/tb
# 1  
Old 12-10-2002
who -uH, kill the process at different pts/tb

i log in as root and is in pts/11 , do a who -uH, got the below

root pts/11 Dec 11 08:01 0:10 11588
root pts/12 Dec 11 09:09 0:03 12001

now do a ps -ef | grep pts/12, get the below

root 12133 12107 0 09:18:22 pts/13 0:00 vi myoracle
root 12107 12105 0 09:14:48 pts/13 0:00 -csh

1) so now i am in pts/11, but i want to kill the process at pts/12 which is "vi myoracle". How?

2) are pts/11, pts/12 called as terminals?
yls177
# 2  
Old 12-11-2002
root 12133 12107 0 09:18:22 pts/13 0:00 vi myoracle
root 12107 12105 0 09:14:48 pts/13 0:00 -csh

You would kill the 12133 process - best to get back to that session and quit from the editor, but you could kill it. Read the man page on kill. I am hoping that the 'pts/13' was just a typo.
# 3  
Old 12-11-2002
thanks RTM.. the corrected version is as belows

i log in as root and is in pts/11 , do a who -uH, got the below

root pts/11 Dec 11 08:01 0:10 11588
root pts/12 Dec 11 09:09 0:03 12001

now do a ps -ef | grep pts/12, get the below

**** CHANGED THE BELOW TWO LINES ****
root 12133 12107 0 09:18:22 pts/12 0:00 vi myoracle
root 12107 12105 0 09:14:48 pts/12 0:00 -csh

1) so now i am in pts/11, but i want to kill the process at pts/12 which is "vi myoracle". How?

2) are pts/11, pts/12 called as terminals?

3) rtm, I wanted to get back to that session but it gets hanged... and therefore the though of killing it from other pts...

4) will take a man look and hopefully will provide a answer.
yls177
# 4  
Old 12-11-2002
1) You can use kill -9 12133 -- if that process is the one that causes the session to hang. Hopefully you should get back your prompt.

2) are pts/11, pts/12 called as terminals? NO

pts -- STREAMS slave pty (psuedo-terminal) driver

A psuedo-terminal (pty) consists of a tighly-coupled pair of character devices, called the master device and slave device.
The pty master and slave device drivers work together to simulate a terminal connection where the master provides a connection to the pseudo terminal server process and the slave provides a terminal device special file access for the terminal application processes, as depicted below:

Application Processes <--> pty functions <--> Server Process

-----------------
pty functions
-----------------
Slave | Master
(pts) | (ptm)
-----------------

Hope it helps !!

~MK
minazk
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. 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

2. UNIX for Dummies Questions & Answers

Script to start background process and then kill process

What I need to learn is how to use a script that launches background processes, and then kills those processes as needed. The script successfully launches the script. But how do I check to see if the job exists before I kill it? I know my problem is mostly failure to understand parameter... (4 Replies)
Discussion started by: holocene
4 Replies

3. 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

4. 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

5. 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

6. UNIX for Dummies Questions & Answers

Sending alt-n to /dev/pts/1 from process bound to /dev/pts/2

Hello, i am using finch (unix commandline instant messaging client using libgnt) which is running connected to /dev/pts/1 Now I would like to "remote control" the program by sending the key combinations normally typed on the keyboard from a programm in another shell. So I tried:... (0 Replies)
Discussion started by: mentos
0 Replies

7. 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

8. Shell Programming and Scripting

how to start a process and make it sleep for 5 mins and then kill that process

how to start a process and make it sleep for 5 mins and then kill that process (6 Replies)
Discussion started by: shrao
6 Replies

9. 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