1837118 Members
2718 Online
110112 Solutions
New Discussion

Re: default printer

 
SOLVED
Go to solution
Vijaya Kumar_3
Respected Contributor

default printer

Hi

I have a HP-Ux box running with B11.00.

I configured many printers both remote and local, nearly 10 printers now.

Rightnow whenever users are giving a print out it is going to one printer.. can u give me any ideas.

I checked /etc/profile for PRINTER and LPDEST, no luck. Also i checked users profile for these variable.

any ideas...

Vijay
Known is a drop, unknown is ocean - visit me at http://vijay.theunixplace.com
7 REPLIES 7
doug mielke
Respected Contributor
Solution

Re: default printer

lpstat -d will tell you if you've set a default printer.

if so, lpadmin -d

will result in no default set.
Helen French
Honored Contributor

Re: default printer

Check the output of:

# lpstat -t

It will give you all information about printers and your default printer too. If you want to change it, use:

# lpadmin -d printer_name
Life is a promise, fulfill it!
A. Clay Stephenson
Acclaimed Contributor

Re: default printer

You need to train your users to use the -d option for lp.
lp -dmyprinter file1 will send the job to myprinter
whereas lp file1 will send the job to the system-wide default printer unless LPDEST is set and exported for that user.

each user could have an LPDEST setting in his profile to override the default. If printing from within an application that simply issues an lp command then LPDEST is often used to allow users to specify which printer to use.
If it ain't broke, I can fix that.
Jeff Schussele
Honored Contributor

Re: default printer

Hi Vijay,

If they wish to use a printer other than the default then use the lp command as follows:

lp -dptr_name filename
or
command | lp -dptr_name

This will cause the printout to go to ptr_name.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
MANOJ SRIVASTAVA
Honored Contributor

Re: default printer

lpststat -t | grep def will give you the default printer , it looks the users are using lp < file name > and the file spools to the default printer , the way out is

1. Educate users for using -d option.
2. Edit the users profile so that lp is aliased wiht lp-d < printer name for that group of users >


Manoj Srivastava
Fabio Ettore
Honored Contributor

Re: default printer

Hi,

Doug pointed to the right direction.
I think that the problem happens when a default printer is set, but easily should be solved by using the -d option on lp command:

# lp -d printer_name

Best regards,
Ettore
WISH? IMPROVEMENT!
Vijaya Kumar_3
Respected Contributor

Re: default printer

Thanks a lot for everyone.

Vijay
Known is a drop, unknown is ocean - visit me at http://vijay.theunixplace.com