1833467 Members
3737 Online
110052 Solutions
New Discussion

/var/spool/lp

 
Marco Ciancaleoni
Occasional Contributor

/var/spool/lp

Hi All,

I find detailed information about files contained in the directories :

/var/spool/lp and /var/adm/lp/log.

Thanks in advance to whom can help
4 REPLIES 4
Bill McNAMARA_1
Honored Contributor

Re: /var/spool/lp

try lpstat -t

Later,
Bill
It works for me (tm)
Marco Ciancaleoni
Occasional Contributor

Re: /var/spool/lp

Thanks,

but I looking for the format of the log files about status of print queue and fails notification.

bye.
Tim D Fulford
Honored Contributor

Re: /var/spool/lp

Hi.

In general do not touch /var/spool/lp/*. Use the utilities lpshut, lpsched, cancel, lpstat, reject, accept, enable, disable etc

* /var/spool/lp/request/ this contains a directory for each printer. Within this directory there are two files for each print job. lpstat -t gives the print queue, Hence Bills response

* /var/spool/lp/log logs the lp daemon starting stopping etc.

* /var/spool/lp/[c]interface/ contains a script for each printer. Do not touch, use jetadmin

* /var/spool/lp/ are generally configs, scripts, templates etfc for the printers. Fiddle with them at you own peril.

I'm assuming you are having probelms with your printers.

If you are really having problems cancelling jobs then.
# ps -fu lp
Run this a few times & see if the print queues are moving. This should give you a clue as to which printer is having problems.
Also doing
# du -sk /var/spool/lp/request/* | sort -n
Gives you an idea how much each printer has to print.

Lets say you think a printer called "myprinter" is the problem.
# /sbin/init.d/lp stop or # lpshut
# mkdir /tmp/myprinter
# mv /var/spool/lp/request/myprinter/* /tmp/myprinter/.
# reject [-r ] myprinter
# disable [-r ] myprinter
# /sbin/init.d/lp start or # lpsched

If you want to re-print these jobs youve saved the originals in /tmp/myprinter/df??? (Data File I assume) the /tmp/myprinter/cf??? is not really required (Control File I assume).

I hope the above helps

Tim
-
Marco Ciancaleoni
Occasional Contributor

Re: /var/spool/lp

Tim,

your informations are right, but I must Know the the exact internal structure for each file.
It is not a problem with my printer.
I have not found in the hp documentation the explanation of how to directly read the data on that files.

bye