Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Disabling terminal problems

Status
Not open for further replies.

GOSCO

Technical User
Sep 26, 2000
134
GB
I try to kill some procceses on a locked terminal to find that there arn't any. So I disable the tty number. Unix says 'Joe bloggs is on ttyax' and won't disable the port.

The only way I know to retrieve the terminal is to shutdown the server. There must be some other way....

Thanks

ANdy
++



[sig][/sig]
 
Which kill? How do you find what is running so you can kill it? How about unlocking at the terminal itself?
DTR or X/on-X/off? or none ?
Sorry , no answers, just more questions.
[sig]<p>Ed Fair<br><a href=mailto: efair@atlnet.com> efair@atlnet.com</a><br><a href= > </a><br>Any advice I give is my best judgement based on my interpretation of the facts you supply. <br>
Help increase my knowledge by providing some feedback, good or bad, on any advice I have given.<br>
[/sig]
 
To find the processes(s) running on the port (say ttya3) I do a:
#ps -ta3

then normally would do a

#kill -9 1234 1235 ...etc

but in this case no processes are running to kill them off:

The next step would be to disable the port and enable it again. i.e.

#disable ttya3

but in this case disable doesn't work because UNIX won't disable a port when it thinks someone is logged in.

The fact someone is logged in is verified by using:

#who

Another relevant point is that we use specialix ports.

Sometime if you turn the terminal (or whatever is connected to the specialix) off and back on again it will spawn a getty but about 90% of the time I find I have to do a shutdown!

I hope this gives you more of an idea what im talking about.
Thanks
Andy
++
[sig][/sig]
 
Andy, if you use &quot;who -u&quot; do you get and associated pid for that session? [sig]<p>Ged Jones<br><a href=mailto:gedejones@hotmail.com>gedejones@hotmail.com</a><br><a href= > </a><br>Top man[/sig]
 
My feeling is that I probably do, though I haven't anyone in the situation at the moment.

But I am hopeful that you may have cracked it for me. I'll have to try.

When you do a

#who -u

Does the PID number displayed (Users Shell) appear also in

#ps -taf (ttyaf)

My guess is that it doesn't in which case you have cracked it...

Im going to try as soon as I have the problem again.

Thanks and I'll let you knoe who I get on!!!!

Thanks again!
Andy
++


[sig][/sig]
 

who -u |grep ttya13

>>userx ttya13 Sep 26 07:53 0:06 6817

kill -9 6817

works every time !





[sig]<p>-Danny<br><a href=mailto: > </a><br><a href= > </a><br> [/sig]
 
Yes your right Danny ive just managed to try it. I feel a bit stupid because because im suppost to be supporting about 200 servers and they get the same response every time.

'Sorry you need to shut the server down'

oh well, were not all perfect!!!!
Thanks again
Andy
++

Im going to continue jumping around the office now.
Bye


[sig][/sig]
 
Everything I would have said has since been covered, along with some further education for me.
Curious what would happen on the locked terminal if you did the unlock sequence
^J stty sane ^J and an enter.
Based on the comments I'd say there was a close problem on some program.
[sig]<p>Ed Fair<br><a href=mailto: efair@atlnet.com> efair@atlnet.com</a><br><a href= > </a><br>Any advice I give is my best judgement based on my interpretation of the facts you supply. <br>
Help increase my knowledge by providing some feedback, good or bad, on any advice I have given.<br>
[/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top