[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Extra form-feeds when printing via Samba
1. DESCRIPTION OF THE PROBLEM
-----------------------------
When I send a print job from a Windows machine to a Linux machine, to
which the printer is connected, the print job is printed. But at the
end of the printout, an extra empty page is ejected.
How to prevent this extra page from being ejected? This extra page is
not generated when I print a file locally from the Linux computer (by
means of cat filename | todos > lpr). Is there any Samba configuration
parameter which prevents it from sending an extra FormFeed character to
the printer at the end of remote print jobs?
2. Insurance against Marc's flames
(Official title of this section: SYSTEM CONFIGURATION)
----------------------------------------------------------
I have a network of two PCs, one running Linux (kernel version 1.2.13)
and one running Windows 3.11 (actually, it is double-boot - the other
possibility is Windows 95). The network runs on Ethernet. I don't know
what else might be relevant about it because I saw no other problems with
it. My printer is connected to the PC running Linux, and it is HP
DeskJet 660C.
I installed Samba (version 1.9.13) which came in the same CD-ROMs from
which I installed Linux (InfoMagic 5-CD set from November 1995; I
used the Slackware 3.0 packages), and as far as I can determine, it works
OK and allows the Windows PC to access files and the printer on the Linux
machine. This performance is OK for both Windows 3.11 and Windows 95.
The following printer command is used (as reported by testparm):
lpr -r -P%p %s
The file /etc/printcap has only the following non-commented-out line:
lp:lp=/dev/lp1:sd=/usr/spool/lp1:sh
The problem with the printer happens when I send a printout from both
Windows 3.11 and Windows 95.
3. A POSSIBLE BRUTE-FORCE SOLUTION
----------------------------------
If no one comes with a better idea, I'll try the brute-force solution of
replacing the default printer command (given above) by a filter which
removes a trailing form feed from the file and then invokes the standard
lpr. But I prefer the more elegant solution of setting the appropriate
parameter, if one exists at all.
--- Omer
Internet E-mail: xlacha1@wizard.weizmann.ac.il
omerz@actcom.co.il
WWW home page: http://www.weizmann.ac.il/~xlacha1/
DEAF-L FAQ home page: http://www.weizmann.ac.il/deaf-info/
Follow-Ups: