Printing with lpr or lprng without two copy
William Knox
wknox at mitre.org
Wed Jan 5 12:17:53 GMT 2000
Risko,
Have you tried the following as a print command:
lpr -s -P%p %s; rm -f %s
? I use this without any problems (minus the -s flag, which I will look
into - I always thought that duplicating the file was a waste, but had
never come across this option for some reason). Let me know if this
works for you.
--
Bill Knox
Operating Systems Programmer/Analyst
The MITRE Corporation
Risko Gergely wrote:
>
> Hello!
>
> We're using samba to manage our HP LaserJet 8000, which is a very fast and
> high capable printer. So we need the best performance, when we
> printing. The problem is when samba receive a file for printing it's
> copying the file to a tmp directory, and after that the lpr is copying
> this file out to its own spool directory. For example, where a 300M
> printing job is arriving from a windows it'll go to the /tmp. And after
> the full network job finished samba run the print command (the recommended
> lpr -P%p %s) and this command copy this file once too.
>
> I probed the lpr -s -r -P%p %s command, but it isn't deleting the file
> from /tmp after the printing. It only deletes the symlink from lpr's spool
> directory.
>
> So how can I make a printing scheme, which only copies files from windows
> to the server and after the copy the printing immeaditely starts?
>
> The security isn't important, because it's a closed network without
> internet connection, and all of the people are good. ;-)
>
> System:
> Debian 2.1
> samba 1.9.18 (but I can install the freshest 2.0.6)
> lpr 0.33 (0.46 is available)
> kernel 2.0.36 (2.2.13 available)
>
> PLEASE CC YOURS ANSWERS TO RISKO at NJSZKI.HU.
>
> Thank you for yours helping,
> Risko Gergely
More information about the samba
mailing list