- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Network printing
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
тАО06-08-2006 06:51 PM
тАО06-08-2006 06:51 PM
Network printing
At one of our client sites we have used remote printers extensively for the business systems.
In fact, we have not used network printers (on HP-UX) at all.
The business systems employ BRIO and SQR reports. These reports generated on HP-UX would be printed by users using the report viewers available to the above products. The remote printers are setup on Windows file and print servers.
Recently, a user requested that an SQR report print double sided without human intervention (ie not via the viewer). But, this requirement is for only a single report (generated daily by a batch process on HP-UX) to a single printer. All other reports to this printer must not print double sided.
What is the best and most convenient way to fulfill the users request?
Regards
Graham
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-08-2006 06:58 PM
тАО06-08-2006 06:58 PM
Re: Network printing
if you want to do this on the printer level, you would have to create a seperate local printer.
In the interface script of that printer you can prepend the postscript command or escape sequence for doubleside printing and then send the whole data to your original printer.
mfG Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-08-2006 08:44 PM
тАО06-08-2006 08:44 PM
Re: Network printing
Thanx for the response. Just a quick question. How do you relate the "local printer" to the "remote printer" so that you can send the whole data to the original printer (remote printer)?
Regards
Graham
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-08-2006 10:59 PM
тАО06-08-2006 10:59 PM
Re: Network printing
- if the 'real' printer is fixed, hardcode it in the interface script.
- if you there a very few 'real printers', create a frontend printer for each of it with a name 'lrealprinter' and in the identical interface scripts use that construction (ksh/posix sh assumed):
..
realpr=${0##*/}
realpr=${realpr#l*}
...
- if this has to set dynamically, you have to supply the real printername as an option to the lp-command:
lp -o realpr=PRINTER ...
and in the interface script
add/create a loop for parameter 5 like this:
...
optionlist=$5
for o in $optionlist
do
case $o in
realpr=*)
realpr=${o#realpr=*} ;;
...
esac
done
mfG Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-09-2006 12:37 AM
тАО06-09-2006 12:37 AM
Re: Network printing
However, it sounds like you have remote printers, that is, printers that are connected to other computers like Windows and you are sending the jobs to the remote computer, not the printer. This is the worst situation because you have no control over the remote server. The usual -o options are ignored for remote printers.
The model script used for remote printers is found in /usr/lib/lp/model/rmodel and you'll see there are no options for duplex (or landscape, etc). You might create a second printer queue and then modify the new queue's printer script (found in /etc/lp/interface). You'll need to look at the man page for rlp to see how it is used. Note that rlp accepts only a filename as input so the file will have to be recreated with an inserted escape sequence (that matches that particular printer's requirements) to trigger duplex (double sided) printing.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-09-2006 12:52 AM
тАО06-09-2006 12:52 AM
Re: Network printing
Regardless of whether your prints from UNIX is text, PCL or Postscript - find out the PCL ESC sequence to enable and disable duplex printing. Once you got the code right - create a wrapper lp script that will add and append the duplex enable and disable (respectively) codes as part of the print stream submitted to the remote printer queue.
I've done this a lot of times in the past. You can even embed in yur print stream things like - forms control, tray control, etc. All control codes should be in the printer manual.
Hope this helps.