lpr lock problem under Sun4.0.3

Don Libes libes at cme.nist.gov
Sun Dec 9 09:07:00 AEST 1990


In article <522 at brchh104.bnr.ca> millercb at phoenix.princeton.edu (Clifford B Miller) writes:
>4.0.3.  Every once in a while, one of the printers gets into a state where
>it's "waiting for lock on /dev/ttyN" where N is the printer device.  No
>combination of lpc commands seems to remedy this...I've had to physically
>disconnect the printer from the serial port to get rid of this state.  I
>have also tried things like sending an end-of-file character to the
>printer.  What does this state really mean?  What is lpd really waiting
>for?  Any suggestions to remedy this situation would be greatly
>appreciated!

I have a program that cures that state by resetting various things.
'lpunlock' comes as an example in the 'expect' distribution.  (It needs
expect because it uses lpc, and it also figures out if the printer is
remote and rlogin's to it with root privs if necessary.)

expect may be ftp'd as pub/expect.shar.Z from durer.cme.nist.gov.  Request
email delivery by mailing to "library at cme.nist.gov".  The contents of the
message should be (no subject line) "send pub/expect.shar.Z".

Don Libes          libes at cme.nist.gov      ...!uunet!cme-durer!libes



More information about the Comp.sys.sun mailing list