1835947 Members
2509 Online
110088 Solutions
New Discussion

lp control files

 
Tracie Roberts
Occasional Contributor

lp control files

I am having problems with printing on one of my HP-UX boxes. If I disable the print queues on both boxes and then lp the jobs I get the following in my control files. Can somebody explains to me what is in these two control files, what do the differences refer to and where does this info come from.

HP-Box #1
root@ISIFHP1-> more cfA031isifhp1
Hisifhp1
Ptracier
Juw211r_test-31
C
Ltracier
A0
B
O
TUW211RG465_728439220060509195949AGN_0059POL3_0599462.LIS
FdfA031isifhp1
fdfA031isifhp1
UdfA031isifhp1
NUW211RG465_728439220060509195949AGN_0059POL3_0599462.LIS
root@ISIFHP1->

HP-Box #2
root@ISIFHP3-> more cA2024isifhp3
Hisifhp3
Ptracier
Juw211r_test-2024
C
Ltracier
A0
B
O
K1
TUW211RG465_728441220060509195716AGN_0000POL3_0574329.LIS
FdA2024isifhp3
fdA2024isifhp3
UdA2024isifhp3
NUW211RG465_728441220060509195716AGN_0000POL3_0574329.LIS

Thank you very much for your help!
7 REPLIES 7
Cheryl Griffin
Honored Contributor

Re: lp control files

The files in /usr/spool/lp/request will start with a c (for commands) or a d (for data).

The c file contains all options the used when lp was invoked. lp knows how to translate the data there. It is otherwise humanly unreadable.
"Downtime is a Crime."
Tracie Roberts
Occasional Contributor

Re: lp control files

Can you tell me where these options are setup?
Cheryl Griffin
Honored Contributor

Re: lp control files

It's controlled by the model script and any options you add to the lp command at command line.
"Downtime is a Crime."
Roberto Arias
Valued Contributor

Re: lp control files

Hello:

you can remove this files, no problem. re.send the job at lp

Regards
The man is your friend
Bill Hassell
Honored Contributor

Re: lp control files

As Cheryl mentioned, these are control codes for the spooler. I wrote an article many years ago identifying all the codes but I haven't been able to locate it yet. Each line starts with a capital letter that identifies the element on the that line.

H is the hostname
P and L are the user name
J is the job ID,
C is the copy count,
O is the list of options (from -o),
T is the file to be printed

and that's all I can remember...

Now disabling the printer only stops it from actively printing. But the jobs still pile up in the /var/spool/lp/request directories. To stop jobs from even being submitted, you use the reject command. Both disable and reject have -r reason options which are usel to document why a printer is disabled/rejected.


Bill Hassell, sysadmin
Cheryl Griffin
Honored Contributor

Re: lp control files

Bill
This looks like the doc you mentioned.

BA940831000
What is the format of the lp log file?
"Downtime is a Crime."
Cheryl Griffin
Honored Contributor

Re: lp control files

At second glance, its not. Sorry about that.
"Downtime is a Crime."