[comp.unix.aux] serial port recovery

rprohask@orion.oac.uci.edu (Robert Prohaska) (11/29/90)

How do I recover control of a serial port?  cu reports tty0 
not available, ps shows nothing running, but if I call init 1,
wait a bit, call init 2, wait till the console responds and 
try again it usually works.

If the line is busy and I reboot, the port seems usually to
remain busy.

Any ideas?

bob prohaska

andyp@treehouse.UUCP (Andy Peterman) (11/29/90)

In article <27545011.21538@orion.oac.uci.edu> rprohask@orion.oac.uci.edu (Robert Prohaska) writes:
>
>How do I recover control of a serial port?  cu reports tty0 
>not available, ps shows nothing running, but if I call init 1,

Take a look in /usr/spool/uucp for a file 'LCK..tty0' and delete that
file.  It sometimes gets left around by cu or getty.

-- 
Andy Peterman                       |   Opinions expressed
treehouse!andyp@gvgpsa.gvg.tek.com  | are definitely those of
(916) 273-4569                      |      my employer!

alexis@panix.uucp (Alexis Rosen) (11/30/90)

rprohask@orion.oac.uci.edu (Robert Prohaska) writes:
>How do I recover control of a serial port?  cu reports tty0 
>not available, ps shows nothing running, but if I call init 1,
>wait a bit, call init 2, wait till the console responds and 
>try again it usually works.
>
>If the line is busy and I reboot, the port seems usually to
>remain busy.

rm /usr/spool/uucp/LCK..tty0

cu is broken this way. It should remove stale locks automatically, but it
does not.
---
Alexis Rosen
Owner/Sysadmin, PANIX Public Access Unix, NY
{cmcl2,apple}!panix!alexis