- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Alias and LP string
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
Forums
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
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
12-01-2006 02:16 AM
12-01-2006 02:16 AM
another "issue" that I am getting from the users is they don't want to "pick" a printer from a pick list, they want to have a default defined.. Not a problem LPDEST does the job to define the que, But they have an issue..
MOST thankfully are running HP.
I need to define "lp" to
alias "lp -oc -ovsi7.27"
Can someone give me a short and skinny way of defining an alias in the user's profile so we can user proof the printing?
I've tried launching a shell script by doing a
. shellscriptname
the shell script looks like this:
alias lp='lp -oc -ovsi7.27'
I've tried putting this line in the user/.profile and it doesn't work..
Any insight appreciated.
Rex Mueller -- ESU3
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2006 02:26 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2006 02:27 AM
12-01-2006 02:27 AM
Re: Alias and LP string
and add in .profile
export ENV=$HOME/.kshrc
All the best
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2006 02:44 AM
12-01-2006 02:44 AM
Re: Alias and LP string
#!/bin/sh
/usr/bin/real_lp -oc -ovsi7.27 $@
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2006 02:50 AM
12-01-2006 02:50 AM
Re: Alias and LP string
I've tried both, the alias is retained if I su - to the user in question and execute command line printing, however when the user goes into the "accounting" app, apparently there is a subshell that executes and that particular alias is not available to the user.
If I didn't have 500 user accounts on the system that use lp defaults, I'd opt for testing the real_lp method but I'd be hanging from the nearest pole if I tried that as we sit.
I need to do some digging. Perhaps one of the subshells that launch the app is revoking all the aliases that are predefined.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2006 04:13 AM
12-01-2006 04:13 AM
Re: Alias and LP string
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2006 05:21 AM
12-01-2006 05:21 AM
Re: Alias and LP string
and believe your only option is if your users accept to type an extra char would be the script you call lp2 that you put in /usr/bin:
#!/usr/bin/sh
/usr/bin/lp -oc -ovsi7.27 $@
#
an like you dont touch at lp...
All the best
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2006 05:25 AM
12-01-2006 05:25 AM
Re: Alias and LP string
You should read:
and like that,you dont touch at lp...
sorry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2006 02:08 AM
12-04-2006 02:08 AM
Re: Alias and LP string
Thanks all for the info..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2007 02:09 AM
05-15-2007 02:09 AM