How Do I ... Reset a screen
Hung screens should not happen frequently at all, if they do the chances are someone is doing something 'weird'. Make sure you make a note in your computer log so you can determine any trends.
One of the common causes is someone going into an option they don't understand, switching the screen off/on making it impossible to see what was there and if there ware any options.
There are a few steps you can take:
- On the 'hung' screen - are there any options to Exit or Quit?
If the screen is blank try pressing <ctrl> L as this is used in a few programs to 're-draw' the screen.
If you have a $/# prompt but can't type anything try
<ctrl> J stty sane <crtl> J - If you are unable to get the screen back to a known state you
will need to 'kill' it.
- If you know the 'tty' number then jump to the next step.
Go to any working premvet screen, press F11 can you see the user listed - if so look at the 1st column and make a note of the 'tty' number.
If they are not listed here then, unless you login to Unix with your own names then the only option is to do a controlled shutdown or contact support. If you do login as individual users then in the step below use ps -u user-name.
- Login as root (or as the same user who has locked the screen) and
at the O.S. prompt (#, $, Vet>) type:
ps -t tty-numbere.g. ps -t tty01 - The screen will show something similar to:
PID TTY TIME CMD 11242 tty01 00:00:00 login 11245 tty01 00:00:00 sh 11276 tty01 00:00:00 run14Look for the line ending in
run14you will need the number in the PID column for this line.Type:
kill pid-number - The screen, if locked in Premvet, has been reset.
- It didn't work !!
If it didn't work then:
- Check you have the correct 'tty number'.
- If you are not logged in as root, login as root and re-try.
- If the ps command did not list run14 then repeat step (e) but
look for the line(s) ending in '
sh' or 'ksh' and kill them
e.g.kill 11245 - If this has still not reset it, repeat the above line but add in
the 'sure fire' option "-9"
e.g.kill -9 11245 - Contact support or do a controlled shutdown