[cups.general] one page or less will not print

Johannes Meixner jsmeix at suse.de
Mon Oct 9 02:12:29 PDT 2006


Hello,

On Oct 4 09:22 michael drillinger wrote (shortened):
> Jobs of more than one page print completely but jobs that are one page
> or less do not print.
....
> The control line to the printer currently is: lpr -oraw -Pprintername.

It seems the last formfeed at the end of the job is missing.
Therefore the page seems to be sent to the printer but the
printer never prints and ejects it.

To add the formfeed:

You may enhance the print command with something like
bash -c ' ( cat - ; echo -en "\f" ) | lpr -oraw -Pprintername '

Alternatively don't use plain raw printing but a queue with a
"System V style interface script", see "man lpadmin", "man 7 filter",
and
http://en.opensuse.org/SDB:Using_Your_Own_Filters_to_Print_with_CUPS

The following (untested) bash script should do what you want:
---------------------------------------------------------------------
#! /bin/bash
# activate the next line for debug info in /var/log/cups/error_log
#set -x
# have the input at fd0 (stdin) in any case
[ -n "$6" ] && exec <"$6"
# carriage return before printing
echo -en "\r"
# printing
cat -
# form feed after printing
echo -en "\f"
---------------------------------------------------------------------

For general information see for example
http://en.opensuse.org/SDB:CUPS_in_a_Nutshell


Kind Regards
Johannes Meixner
-- 
SUSE LINUX Products GmbH, Maxfeldstrasse 5      Mail: jsmeix at suse.de
90409 Nuernberg, Germany                    WWW: http://www.suse.de/





More information about the cups mailing list