- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: LP command options
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
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
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
тАО04-23-2010 12:36 PM
тАО04-23-2010 12:36 PM
LP command options
Please forgive me, I'm a SAP Basis Admin, not a PCL driver wizard.. :)
All of our print jobs from SAP show up at the printer as "Remote User"; we would like to pass the username through to the printer. I've been researching the -o LP command- but I'm unable to get anything to pass the user name from unix to the printer via the PCL driver. I've tried stuff similar to below:
us3f is the printer name, jdpeters is my ID.
/usr/bin/lp -c -dus3f -n1 -onb -or -oUSERNAME=JDPETERS /tmp/jeff.2
/usr/bin/lp -c -dus3f -n1 -onb -or -oUSERNAME='JDPETERS' /tmp/jeff.2
/usr/bin/lp -c -dus3f -n1 -onb -or -o&USERNAME='JDPETERS' /tmp/jeff.2
/usr/bin/lp -c -dus3f -n1 -onb -or -oUSERNAME /tmp/jeff.2
/usr/bin/lp -c -dus3f -n1 -onb -or -oUNAME /tmp/jeff.1
/usr/bin/lp -c -dus3f -n1 -onb -or -oUNAME='JDPETERS' /tmp/jeff.1
/usr/bin/lp -c -dus3f -n1 -onb -or -oID='JDPETERS' /tmp/jeff.1
We are using HP-UX 11.31 and the HPJL PCL5 driver...
any suggestions would be much appreciated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2010 02:33 PM
тАО04-23-2010 02:33 PM
Re: LP command options
Have you tried the title: -t'JDPETERS'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-26-2010 06:00 AM
тАО04-26-2010 06:00 AM
Re: LP command options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-26-2010 09:11 AM
тАО04-26-2010 09:11 AM
Re: LP command options
lp -o yb -t $(whoami) -d
Rita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-26-2010 09:22 AM
тАО04-26-2010 09:22 AM
Re: LP command options
Tried the following variations:
/usr/bin/lp -o -yb -t$(JDPETERS) -dus3f /tmp/jeff.1
Variable syntax.
/usr/bin/lp -o -yb -t$JDPETERS -dus3f /tmp/jeff.1
JDPETERS: Undefined variable.
/usr/bin/lp -o -yb -tJDPETERS -dus3f /tmp/jeff.1
request id is us3f-259 (1 file) (this one printed, still without coversheet and the job in the printer records was owned by "Remote User" see attached screenshot.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-26-2010 09:47 AM
тАО04-26-2010 09:47 AM
Re: LP command options
lp -o yb -t $(whoami) -d
/rcw
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-26-2010 10:36 AM
тАО04-26-2010 10:36 AM
Re: LP command options
/usr/bin/lp -o yb -t$whoami -dus3f /tmp/jeff.2
whoami: Undefined variable.
/usr/bin/lp -o yb -t$(whoami) -dus3f /tmp/jeff.2
Variable syntax.
/usr/bin/lp -o -yb -t$whoami -dus3f /tmp/jeff.2
whoami: Undefined variable.
Unfortunately, we would not be able to use the whoami command from unix- since the end users will not have unix accounts, but we are able to directly send the username from SAP to unix by inserting the &0 variable in the profile parameter. So the username will be inserted directly into the print command.
This is starting to drive me crazy.. LOL
Any other suggestions?
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-27-2010 01:39 AM
тАО04-27-2010 01:39 AM
Re: LP command options
(There are no PCL drivers on HP-UX.)
>I've tried the -t'JDPETERS' item in the print command, it still comes out as "Remote User".
Naturally. The -t option was just a workaround to change the title, if we can't figure out how to change the user.
>so we can have the printer hold all prints until they enter their code.
Then I guess you need the user ID accurate. But how does the printer know which code goes with which users?
>but we are able to directly send the username from SAP to unix by inserting the &0 variable in the profile parameter. So the username will be inserted directly into the print command.
The lp(1) command knows nothing about how SAP prints things nor "inserted directly into the print command".
How did you install us3f?
What does this have:
/var/spool/lp/interface/us3f
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-27-2010 11:53 AM
тАО04-27-2010 11:53 AM
Re: LP command options
/var/spool/lp/model/*
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-27-2010 01:24 PM
тАО04-27-2010 01:24 PM