- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Printing to a specific tray?
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
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
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
тАО07-13-2005 12:41 AM
тАО07-13-2005 12:41 AM
Printing to a specific tray?
For all you printing experts!
A colleague has a customer running HPUX who want to use tray 2 (this is the headed paper tray) on their printer every time the line "1BE" is at the top of a page to be printed. The default tray is tray 4. This is probably straight forward but my printing experience is zero!
Regards,
Aidan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-13-2005 12:50 AM
тАО07-13-2005 12:50 AM
Re: Printing to a specific tray?
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-13-2005 02:05 AM
тАО07-13-2005 02:05 AM
Re: Printing to a specific tray?
It is run with two arguments: lp1BE -dprinter filename
TOPLINE=`head -1 $2`
if [ "$TOPLINE" = "1BE" ]
then
lp -obin2 $1 $2
else
lp $1 $2
fi
Cheers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-13-2005 02:31 AM
тАО07-13-2005 02:31 AM
Re: Printing to a specific tray?
Thanks Pete & Gavin,
The lp -d -obin# seems to work for some files but not others, there are some PCL commands? attached to the top of files to be printed so i think they may have to look at this before anything else.
Aidan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-13-2005 06:06 PM
тАО07-13-2005 06:06 PM
Re: Printing to a specific tray?
Just so people can look and suggest options.
I'm thinking perhaps sed might be able to do something here.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-14-2005 06:38 AM
тАО07-14-2005 06:38 AM
Re: Printing to a specific tray?
cat
sed s/1BE/^]&l5G\
1BE/ | lp -d
The replace is with an Escape&l5G (Ctrl-V Esc & ell 5 G)
I hope this helps and I haven't confused you.
Cheers
Steven