Operating System - HP-UX
1838176 Members
3370 Online
110124 Solutions
New Discussion

Reload lp request files to lpsched

 
Anthony Yau
Occasional Contributor

Reload lp request files to lpsched

I have a printer called e.g. "Alp1" and I have some "cAxxxxhost" and "dAxxxxhost" lp control and data files restored into /var/spool/lp/request/Alp1 directory but the lp scheduler doesn't reload the request to the queue. How can I reload these request to the queue without using lp command again for each file?
I want to know more and more.
2 REPLIES 2
S.K. Chan
Honored Contributor

Re: Reload lp request files to lpsched

I don't think you can do that without resubmitting with lp command. When a file is submitted to the lp spooler, the file /var/spool/lp/outputq will be updated to contain a pointer to that particular job in the print queue. So if you manually copy the "d.." and the "c..." files back in /var/spool/lp/request/Alp1, the pointer in "outputq" file will get confused.
Bill Hassell
Honored Contributor

Re: Reload lp request files to lpsched

The problem with just moving the control and datafiles into the request directory is that the lp spooler keeps a separate list of the queued (unprinted) files. So simply putting the files into the request directory will not get them queued.

However, you could script the lp process to do the printing. The control file contains all the options that lp needs to print the file.


Bill Hassell, sysadmin