From: pfau@coffee.enet.dec.com (Thomas Pfau) Subject: Re: A serial lpd question -- not the norm :-) Date: Fri, 21 May 1993 14:51:57 GMT
In article <1th90qINNf57@iskut.ucs.ubc.ca>, jmorriso@rflab.ee.ubc.ca
(John Paul Morrison) writes...
>In article <1993May20.130814.21644@dbased.nuo.dec.com> pfau@coffee.enet.dec.com (Thomas Pfau) writes:
>:
>: In article <C7AzH6.Apv@acsu.buffalo.edu>, jmsimon@acsu.buffalo.edu
>:(Jeffrey M. Simon) writes...
>:>When I try and start lpd (whether from my rc.xx or by hand), syslog
>:>captures:
>:>-------------------------
>:>................. recycle lpd [57]: spanky: ioctl(TIOCEXCL): invalid argument
>:>-------------------------
>:
>:Looks like lpd uses an unsupported ioctl operation on serial devices.
>:The way I got around this was to modify the kernel. In
>:/usr/src/linux/kernel/chr_drv/tty_ioctl.c around line 386 is where the
>:TIOCEXCL is handled. The code just returns -EINVAL. If you change this
>:to 0 and rebuild your kernel, lpd will start working.
>
>did you ever get lpd to print to the serial port though? I did the kernel
>kludge too soe time ago, but I could never get the serial port to the
>right baud rate, it would always set the serial port to something
>ridiculous. Those printcap flags for setting the tty parameters take
>the cake for being cryptic and stupid. I would really like to get this
>serial printer working.
I print all the time on my serial printer. The trick is to use stty to
set up the port and forget the printcap settings. I'm not sure what the
above ioctl call is supposed to do but I think it is attempting to handle
the serial setup specified in the printcap.
tom_p
======================================================================
pfau@coffee.enet.dec.com | There is a place in space beyond our
16.69.208.195 | sense of time. There is a time
| beyond space.
======================================================================