- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: lp: can't open default destination file
Operating System - HP-UX
1759677
Members
3608
Online
108886
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-30-2006 04:42 AM
тАО08-30-2006 04:42 AM
lp: can't open default destination file
Hi. I have an HPUX 11.0 box that I configured two network printers for. When I do an lpstat everything looks okay, but neither printer is set as default. When I do 'lp ' I get:
lp: can't open default destination file
I think this is an easy fix, I just can't find out how....
Thanks!
lp: can't open default destination file
I think this is an easy fix, I just can't find out how....
Thanks!
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-30-2006 04:53 AM
тАО08-30-2006 04:53 AM
Re: lp: can't open default destination file
Your are missing the file /var/spool/lp/default. The simplest answer is to run lpadmin -dmyprinter and create a default destination. It is also possible that the mode or ownership of this file is wrong eventhough the file exists.
It should be 644, owner lp, group lp.
It should be 644, owner lp, group lp.
If it ain't broke, I can fix that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-30-2006 07:46 PM
тАО08-30-2006 07:46 PM
Re: lp: can't open default destination file
Hi,
if you a prefer graphical user interface, you also can use 'sam' - under 'Printers and Plotters' you can find a list of the configured printers. Mark one and define it under 'Actions' as default printer.
HTH
Volkmar
if you a prefer graphical user interface, you also can use 'sam' - under 'Printers and Plotters' you can find a list of the configured printers. Mark one and define it under 'Actions' as default printer.
HTH
Volkmar
*** Say 'Thanks' with Kudos ***
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-31-2006 01:51 AM
тАО08-31-2006 01:51 AM
Re: lp: can't open default destination file
This is exactly what you want on a server, that is, no default destination. The reason is that unless you are the only user, no one will agree on what the default printer should be. However, there is a VERY useful variable: LPDEST which can be set to your favorite printer. Just set LPDEST to thye name you'd like to use and now lp won't need the -d command. It is ideal in that you can set this up in .profile so every user can have their own default printer:
export LPDEST=prn22
Bill Hassell, sysadmin
export LPDEST=prn22
Bill Hassell, sysadmin
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP