- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Ho do I define LPDEST for printer?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
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
Community
Resources
Forums
Blogs
- 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
01-04-2012 06:43 AM
01-04-2012 06:43 AM
Hi all,
I would like to know how I can determine the LPDEST so when I type
# echo $LPDEST
It will bring up the requested result that I set before.
(On HP-UX B.11.11)
Thanks,
Yali
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2012 06:51 AM
01-04-2012 06:51 AM
Re: Ho do I define LPDEST for printer?
You have to manually set LPDEST in your personal .profile if you want it set every time you log in.
For example, add the following to your .profile if you want printer BR549 set as your LPDEST:
export LPDEST=BR549
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2012 07:07 AM
01-04-2012 07:07 AM
Re: Ho do I define LPDEST for printer?
I did it but it does not make any change. Still the old destination is set, evev after I opened new terminal.
BTW
I am sorry but it is HP-UX B.10.20
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2012 07:14 AM
01-04-2012 07:14 AM
Re: How do I define LPDEST for printer?
>I did it but it does not make any change. Still the old destination is set, even after I opened new terminal.
What's your shell? Did you login when you opened a new terminal? And what type of terminal?
Did you put that export at the end of your .profile?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2012 10:53 PM
01-04-2012 10:53 PM
Re: How do I define LPDEST for printer?
My shell is tcsh. I know that the export command dosen't work on this shell, but I set the LPDEST at the .profile file. It supose to work?
I opened a new terminal when with and without loggin.
I put the export at the end of my .profile.
Thanks
- Tags:
- tcsh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2012 07:10 AM
01-06-2012 07:10 AM
Re: How do I define LPDEST for printer?
>My shell is tcsh. I know that the export command doesn't work on this shell
(If you are not using a real shell, you need to mention that.)
>I set the LPDEST at the .profile file. It suppose to work?
Only if you use a real shell.
For tcsh and scummy C shell you need to use: setenv LPDEST printer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2012 11:34 PM
01-07-2012 11:34 PM
Re: How do I define LPDEST for printer?
Sorry, but I didn't know that tcsh consider as not real shell.
Any way, I worte setenv LPDEST printer on .profile but still has no effect.
I edited the .profile file for the specific user I ment. Should I edit the .profile for root?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2012 12:05 PM - edited 01-08-2012 12:06 PM
01-08-2012 12:05 PM - edited 01-08-2012 12:06 PM
Solution>I didn't know that tcsh consider as not real shell.
Only ksh and the Posix shells are.
>I wrote setenv LPDEST printer on .profile but still has no effect.
Of course not. Only real shells use .profile. The scummy C shell uses ~/.cshrc and ~/.login
>Should I edit the .profile for root?
No. Root should only use the Posix shell. And in that case, use export.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2012 10:43 PM
01-08-2012 10:43 PM
Re: How do I define LPDEST for printer?
Thanks for the answer,
I have to say that this shell (tcsh) used by the users and is suitable to the work.
Yali
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2012 12:23 PM
01-09-2012 12:23 PM
Re: How do I define LPDEST for printer?
>this shell (tcsh) used by the users and is suitable to the work.
Of course if that's what they are used to using. ;-)
But it isn't useful for scripting, compared to a real shell.
And it appears they don't know how to export variables?