1833813 Members
2275 Online
110063 Solutions
New Discussion

about priority spooler

 
SOLVED
Go to solution
Roxana_4
Frequent Advisor

about priority spooler

My names is Roxana and I'am from Brasov, Romania.
I work on a HP-UX 11.23 system.
What changes do I have to do in a system in order to redirect only files with 5,6,7, priority towards the printer ? I don't want to list the files having a priority smaler than 5.

Thank you
an best regards.
17 REPLIES 17
Senthil Kumar .A_1
Honored Contributor
Solution

Re: about priority spooler

Hi Roxana,


Lets sya your printer name is "pinterA"

All u have to do is set a fence priority on that printer as "5"..

ex :

/usr/sbin/lpfence printerA 5

This sould solve ur problem.

Regards,
Senthil Kumar .A
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
Roxana_4
Frequent Advisor

Re: about priority spooler

Thank you
i'am a beginner...
now i'm learning
Roxana_4
Frequent Advisor

Re: about priority spooler


The user sends a file to the printer using lp command. The spooler that has been created is not listed and can be consulted by the admin in /var/spool/lp/request/hp8150. How is it possible for the file owner to read and modify in the spool file using vi ?

Thank you
an best regards
Arunvijai_4
Honored Contributor

Re: about priority spooler

Hi,

This should be useful to you,

http://docs.hp.com/en/B2355-90114/ch02s01.html
[HP-UX Distributed Print Service User's Guide > Chapter 2. Basic Printing Tasks
Using Line Printer Spooler (LP Spooler) Commands ]


-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Sivakumar TS
Honored Contributor

Re: about priority spooler

Hi,

#lpstat -t

would give the list of spoolers and its current status, whether it is running / stopped etc.

From this list the user can select the spooler which he wants.

Regards,

Siva.
Nothing is Impossible !
Roxana_4
Frequent Advisor

Re: about priority spooler

I need to use LP spooler commands instead of HPDPS commands because the HPDPS is not installed!
Arunvijai_4
Honored Contributor

Re: about priority spooler

Hello,

"lpstat" is part of core HP-UX OS and you dont need to install any other stuffs. Just to check that out, run

#swlist -l file |grep -i lpstat
PHCO_30431.LP-SPOOL: /usr/bin/lpstat
PHCO_30431.LP-SPOOL: /usr/sbin/rlpstat
PrinterMgmt.LP-SPOOL: /usr/bin/lpstat
PrinterMgmt.LP-SPOOL: /usr/sbin/rlpstat


-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Sivakumar TS
Honored Contributor

Re: about priority spooler


Hi,

HPDPS is not reqd to be installed to run lpstat.

find it at
/usr/bin/lpstat

Regards,

Siva.
Nothing is Impossible !
Roxana_4
Frequent Advisor

Re: about priority spooler

When the user is trying to control the spool file with vi, the message is " permission denied ". Only the administrator can control the spool file with vi.
What can i do if i want user (not administrator) to control with vi the spool file created by itself.
Arunvijai_4
Honored Contributor

Re: about priority spooler

Hello,

"lpstat" as well from the user..

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Roxana_4
Frequent Advisor

Re: about priority spooler

ll /var/spool/lp/request/hp8150
total 64
-rw------- 1 lp lp 115 Feb 21 07:46 fA026lion
-rw------- 1 lp lp 105 Feb 21 07:52 fA027lion
-rw-r----- 1 lp lp 17 Feb 21 07:46 fA026lion
-rw-r----- 1 lp lp 151 Feb 21 07:52 fA027lion
$
lpstat
hp8150-26 roxa priority 0 Feb 21 07:46
myfile 17 bytes
hp8150-27 roxa priority 0 Feb 21 07:52
x 151 bytes
printer queue for hp8150
JetDirect lpd: no jobs queued on the port Auto
lion: hp8150: ready and waiting
Arunvijai_4
Honored Contributor

Re: about priority spooler

Hello,

ll /var/spool/lp/request/hp8150
total 64
-rw------- 1 lp lp 115 Feb 21 07:46 fA026lion
-rw------- 1 lp lp 105 Feb 21 07:52 fA027lion
-rw-r----- 1 lp lp 17 Feb 21 07:46 fA026lion
-rw-r----- 1 lp lp 151 Feb 21 07:52 fA027lion
$

Only user "lp" can delete/modify it.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Roxana_4
Frequent Advisor

Re: about priority spooler

I would like that another user also be able to modify these spool files.
For ex the "roxa" user to be able to modify these spool files.
Arunvijai_4
Honored Contributor

Re: about priority spooler

Hi Roxana,

I dont think it possible to modify by other user than "root".

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Roxana_4
Frequent Advisor

Re: about priority spooler

I'm sorry ....
Arunvijai_4
Honored Contributor

Re: about priority spooler

Hi Roxena,

This guide should be helpful,

http://docs.hp.com/en/B2355-90950/ch07.html
[Managing Systems and Workgroups
Chapter 7. Administering a System: Managing Printers, Software, and Performance]


-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Roxana_4
Frequent Advisor

Re: about priority spooler

I'am sorry .... because is not possible.
I'am interested in finding out how do i do in order to "roxa" user to be able to modify the file before it gets send to the printer. See above ex i gave you.

Thank You for your efforts and for your kind-ness.