Operating System - HP-UX
1830936 Members
2176 Online
110017 Solutions
New Discussion

Default Printer Selection from HP Vue

 
Dwight R. Hayes, Jr.
Occasional Contributor

Default Printer Selection from HP Vue

I need to allow the users of a 10.20 HPUX HP Vue desktop to choose their default printer without going into the command mode. The original method was a utility panel which could be started from the Front Panel but it stopped working. (If I'm in a terminal window, and type the setuserprinter program command, it works) However, we need to keep the users from the command access for security reasons.
4 REPLIES 4
Pete Randall
Outstanding Contributor

Re: Default Printer Selection from HP Vue

I use one of the comment fields in /etc/passwd (Office Location) to identify their default printer. Then in /etc/profile, I set that default printer with the following:
printer=`/usr/bin/pwget -n $USER | line | cut -d, -f2`;export printer

HTH,
Pete

Pete
Dwight R. Hayes, Jr.
Occasional Contributor

Re: Default Printer Selection from HP Vue

Clarification: I would like the user to be able to set their default printer themselves from a list of defined printers. They will need to do this dependant upon their current location.
Pete Randall
Outstanding Contributor

Re: Default Printer Selection from HP Vue

I'm unfamiliar with the setuserprinter command and can't seem to find it on 10.20, 11.0, or 11i. However, I would think you could write a small script to offer a list of printers for them to choose from and have that script invoked from your "utility panel". I've got a script something like this somewhere that I can try to find if you like.

HTH,
Pete

Pete
Dwight R. Hayes, Jr.
Occasional Contributor

Re: Default Printer Selection from HP Vue

I believe that the setuserprinter is a binary from the application software and not part of HPUX. It calls another script which regenerates the .profile file setting the LPDEST variable to the printer name and exporting it. I believe part of my problem is between the utility panel and this program. I guess I need a "documented" utility panel program. I tried adding this program to the menu list of the "click on desktop" menu but it doen't work there either.
Thanks for your help.