Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

STRANGE PRINTING PROBLEM

Status
Not open for further replies.

rajeshbahl

IS-IT--Management
Jan 6, 2002
116
IN

We are using SCO openserver 5.0.5 on Compaq Proliant ML330.
Whenever we add a local printer through SCOADMIN'S printer manager,the printer gets added.When we try to make this printer as default,the system returns error:
Unable to set <prn. name> as the default printer.
Now the scoadmin's printer manager page does not show anything if we quit and restart the same.
Also lp filename does not print anything, but lp -d <prn. name> filename gives printing.
If we try running lpstat -t, the follwing errors are returned:
Local: queing is enabled.
unable to get hostname for remote machine h. no entries.
lpstat:local:unknown host h

This system is connected to local LAN as well as WAN (through leased line routers). The leased line connection is okay.there is no host on the network with the name h.the name of the system is wep.the /etc/hosts file contains entries for all the connected hosts.

Any one having seen this kind of trouble?


Thanks In Advance
Rajesh K.Bahl
 
Two things:

first see what

/usr/lib/lpadmin -d printername

does. If it sets printername as the default printer, then scoadmin is what's broken, not the lp system.

Second, examine the file /usr/spool/lp/default

That's most likely where your problem lies; that should be an ascii file containing the name of your default printer. If it can't be created for some reason (such as existing already as a named pipe or a character device?) the setting of a default printer would fail.
Tony Lawrence
SCO Unix/Linux Resources tony@pcunix.com
 
Tony, the command /usr/lib/lpadmin -d <prn. name> has set the default printer.
Still the printer manager does not show the installed printers(now it shows blank screen and says 0 printers,xx default).
Also lpstat -t gives the errors I indicated earlier.
Also a few more observations:-

1./var/spool/lp/default exists as an ASCII file.
2.When asked to make a new printer as default through printer manager, it returns the error:the parameter is invalid.

That is what is the latest at this site.


Regards
Rajesh K. Bahl
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top