1825775 Members
2367 Online
109687 Solutions
New Discussion

Capturing spoolfiles

 
PAUL  BAKER
Occasional Contributor

Capturing spoolfiles

I am trying to retain a copy of a spoolfile after it has successfully printed. The problem is that after a successful print, the dfA... file is deleted from the /var/spool/lp/request/ directory.
Any ideas? We are running HP-UX 10.20.

Paul Baker
If at first you don't succeed, give up
2 REPLIES 2
Devbinder Singh Marway
Valued Contributor

Re: Capturing spoolfiles

why don't you disable the printer , send the file to it and copy it and then re-enable the printer
or in your printer interface script ( depends which model you have defined) where it does the print pipe nad tee it to a file

printer cmds | tee /tmp/filename


HTH
Seek and you shall find
John McWilliams
Advisor

Re: Capturing spoolfiles

Can you change the format of the proccess that generates the output to send it to a file and then print it. Otherwise add a line in the start of your printer interface file to copy the dfA file to another location.