Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Oct 1995 10:09:49 -0700
From:      kelly@fsl.noaa.gov (Sean Kelly)
To:        tianlin@iguana.ruralnet.net
Cc:        freebsd-questions@freebsd.org
Subject:   Re: PLEASE HELP: DEClasser printing
Message-ID:  <9510311709.AA28199@emu.fsl.noaa.gov>
In-Reply-To: <199510310925.CAA01099@localhost> (message from Tianlin WANG on Tue, 31 Oct 1995 02:25:49 -0700)

next in thread | previous in thread | raw e-mail | index | archive | help
>>>>> "Tianlin" == Tianlin WANG <tianlin@iguana.ruralnet.net> writes:

    Tianlin> I set postscript as the default mode. Under DOS, the
    Tianlin> printer works fine. This indicates that printer itself
    Tianlin> and interface cable connection have no problem.

Not necessarily.  You might have to choose between polled and
interrupt-driven mode in the lpt driver.

    Tianlin> Under BSD, however, I cannot get postscript file out to
    Tianlin> printer. The problem is that when I send a postscript
    Tianlin> file usng lpr try.ps, the computer send a signal to
    Tianlin> printer that READY button in priter is brinking and
    Tianlin> waiting.

Try sending PostScript directly to the printer device /dev/lpt0:

	cat whatever.ps > /dev/lpt0

If that works, then we can try to debug lpd.  If it doesn't then try
changing IO mode of the lpt driver:

	lptcontrol -p -u0

to switch to polled mode, or:

	lptcontrol -i -u0

to switch to interrupt-driven mode.

If it works in one mode but not the other, then make the change
permanent.  See http://www.freebsd.org/handbook/handbook97.html#152
for more information.

Now, your /etc/printcap:

    Tianlin> lp|local DEClasser 5100:\
    Tianlin>        :lp=/dev/lpt0:sd=/var/spool/lpd:lf=/var/log/lpd-errs:

This is going to send header pages, which aren't valid PostScript.
Add a :sh: to that:

	lp|local DEClaser 5100:\
		:sh:lp=/dev/lpt0:sd=/var/spool/lpd:lf=/var/log/lpd-errs:

-- 
Sean Kelly
NOAA Forecast Systems Laboratory, Boulder Colorado USA

I busted a mirror and got seven years bad luck, but my lawyer thinks
he can get me five. -- Steven Wright



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9510311709.AA28199>