Technical article 105883

How do I stop hpnp logfiles from accumulating in my /tmp directory?

OpenServer 5.0.0OpenServer 5.0.2

Written · Last revised

Problem

My tmp directory is filling up with logfiles from hpnpf.

Cause

Only the $LOG files are being removed. If the spooler gets into a loop retrying a job, the first $LOGTRIES error is sent to the /tmp directory as an alert.

Solution

Change the following line from:
rm -f $LOG
To read:
rm -f $LOG $LPLOG

IMPORTANT NOTE: YOU MUST ALSO MAKE THESE CHANGES TO ANY PRINTER YOU HAVE ALREADY CONFIGURED WITH HPNP.

cd to /usr/spool/lp/admins/lp/interfaces<printer_name> and
make the above changes.

This problem has been corrected in SCO OpenServer Release 5.0.4. Check the date in the file /usr/lib/hpnp/hpnp.model. The updated version is:

@(#) hpnp.model 62.2 97/03/03

See also

man (ADM) hpnpf

From the Xinuos technical article database, record 105883. Reproduced with permission. The original is at www.sco.com/ta/105883, which is reachable but blocked from search engines. Xinuos marks this article against a retired product line. That refers to the product’s lifecycle, not to whether the advice still works — plenty of it still applies to running systems.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.