Operating System - HP-UX
1833770 Members
2084 Online
110063 Solutions
New Discussion

Re: addqueue Questions [JetAdmin]

 
Justin Willoughby
Regular Advisor

addqueue Questions [JetAdmin]

I posted this a few days ago in a follow up to another post. I thought maybe I should post this as a new messages instead.

I have a question about the addqueue utility.

When used, it automatically sets jobm="yes" in the /etc/lp/interface/printername file. How can I get it to set this to jobm="no" ?

Can this be done by another utility via the command line? Of course it can be done via jetadmin but I am going to incorporate this into a script so I need to be able to do it via the command line.

Also using addqueue does not set PRINTERCFG= does this need to be set?

Any suggestions are greatly appreciated!

- Justin
2 REPLIES 2
Vincent Stedema
Esteemed Contributor

Re: addqueue Questions [JetAdmin]

You can use jetadmin functions to do this. To use them some variables need to be set. An example:

# set required variables
TMP=/tmp
HPNP=/opt/hpnp
# source the jetadmin functions file
. /opt/hpnp/admin/fuctions

# modify the jobm and userjobm variables

modify_var /etc/lp/interface jobm "no"
modify_var /etc/lp/interface userjobm "no"

# restore file ownership and access mode
chown lp:bin /etc/lp/interface/
chmod 755 /etc/lp/interface/



Vincent Stedema
Esteemed Contributor

Re: addqueue Questions [JetAdmin]

Almost forgot to answer your second question. PRINTERCFG doesn't have to be set. My guess is that the variable is only used when the script in /etc/lp/interface/model.orig is not available.