Manuel Elgorriaga Kunze wrote:
>
> Hello all,
> I'm trying to setup LPRng 3.6.23 on Linux 2.2.14 as the central print
> serving engine for a dozen of printers in our lan. Each of these printers is
> connected to the network through a dedicated printserver box or through
> their own network card. Endusers access the different Samba-2.0.7-mapped
> printers from their Windows 9x/NT applications through the native
> Win-drivers and from DOS through application-programmed native interfaces
> like PCL or just plain text with some control codes, and no banners are
> used; so these users just need the raw-access to the printers, without any
> filters . Sysadmins on the other hand use printers from the linux-servers,
> also from the linux lprng-server, and they do need some filtering, mainly
> for text files; I use apsfilter 5.4.2 with a2ps for this purpose, and it
> works fine. We are also interested in the accounting and logging facilities
> of lprng.
> I think all the system is close to be ready, but I still have some problems
> which I couldn't solve neither with the manual and howto's nor through
> searching the mailing-list archives. The problem is, that I continuously get
> short tempXXXXX (usually their content is just: "JetDirect lpd: no jobs
> queued on this port") files in my spool directory and some lpqXXXXX in /tmp,
> even after printing from windows has finished (the printing itself works
> fine); lpq is then continuosly checking the queues. Removing these files or
> restarting the lpd doen't help (!?). I think I've messed some think up when
> trying to work out mit /etc/printcap for remote printing, or something is
> wrong about my HP printserver or even with apsfilter, but I don't know where
> else wo look. I'm sure, this is a quite oftly asked problem and perhaps very
> obvious, but I wasn't able to solve it. So here go my apologies, my thanks
> for any hint, and the extract for a typical printcap entry for a Postscript
> HP LJ5000 on a remote HP printserver box.
>
The files in /tmp are created by samba if you have a lpq cache time
(they may also be created if you don't, but I don't think so) in order
to cache the lpq information when they are queried by a client (I have
no idea why they are left hanging around forever by default by samba,
but they are). You can put the following line into a cron job in order
to delete any files that match lpq.* in the toplevel of the /tmp
directory that are over a day old (the insanity of the find command is
to prevent it from going below the top level of the /tmp directory to
any subdirectories - I know, if it is in /tmp is should be considered
pretty much OK to delete at any time, but I'm just this crazy and
paranoid - besides, I wanted to figure out one day how to get find to do
that):
find /tmp \( \! \( -type f -o -name 'tmp' \) -o -name 'lpq.*' \) -prune
-a -name 'lpq.*' -mtime +1 -exec rm {} \;
I have no idea why the tempXXXX files are hanging around in your spool
directory. Could this have something to do with the new lpq caching in
LPRng?
[remainder of message deleted to conserve electrons, a precious natural
resource]
>
> ---
> Manuel Elgorriaga Kunze, IT Department
> Swiss Library for the Blind and Visually Impaired
> CH - 8047 Zurich, Switzerland
> Phone: + 41 1 491 25 55, Fax: + 41 1 492 64 75
>
> -----------------------------------------------------------------------------
> If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
> or lprng-digest-requests) with the word 'help' in the body. For the impatient,
> to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED]
> with: | example:
> subscribe LIST <mailaddr> | subscribe lprng-digest [EMAIL PROTECTED]
> unsubscribe LIST <mailaddr> | unsubscribe lprng [EMAIL PROTECTED]
>
> If you have major problems, send email to [EMAIL PROTECTED] with the word
> LPRNGLIST in the SUBJECT line.
> -----------------------------------------------------------------------------
--
Bill Knox
Senior Operating Systems Programmer/Analyst
The MITRE Corporation
-----------------------------------------------------------------------------
If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body. For the impatient,
to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED]
with: | example:
subscribe LIST <mailaddr> | subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST <mailaddr> | unsubscribe lprng [EMAIL PROTECTED]
If you have major problems, send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-----------------------------------------------------------------------------