- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Print from HPUX to printer attached to PC
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
тАО09-24-2006 05:40 PM
тАО09-24-2006 05:40 PM
Print from HPUX to printer attached to PC
Once again I need your help. I need to print from my HPUX server to a printer connected to a PC. The setup will be the PC, where the printer is attached to, will run an emulator to connect to the unix server. From the emulator output a report from an application to the local printer.
I read that this is called pass-through printing and that secure netterm is able to do this. The same with putty. I have already download putty.exe but I don't know how to set it up so I can print using it.
Can anyone please help me?
Many thanks!
Anthony
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-24-2006 06:00 PM
тАО09-24-2006 06:00 PM
Re: Print from HPUX to printer attached to PC
According to putty's help you can do it as follos:
A lot of VT100-compatible terminals support printing under control of the remote server. PuTTY supports this feature as well, but it is turned off by default.
To enable remote-controlled printing, choose a printer from the .Printer to send ANSI printer output to. drop-down list box. This should allow you to select from all the printers you have installed drivers for on your computer. Alternatively, you can type the network name of a networked printer (for example, \\printserver\printer1) even if you haven't already installed a driver for it on your own machine.
When the remote server attempts to print some data, PuTTY will send that data to the printer raw - without translating it, attempting to format it, or doing anything else to it. It is up to you to ensure your remote server knows what type of printer it is talking to.
Since PuTTY sends data to the printer raw, it cannot offer options such as portrait versus landscape, print quality, or paper tray selection. All these things would be done by your PC printer driver (which PuTTY bypasses); if you need them done, you will have to find a way to configure your remote server to do them.
To disable remote printing again, choose .None (printing disabled). from the printer selection list. This is the default state.
I hope it helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-24-2006 07:30 PM
тАО09-24-2006 07:30 PM
Re: Print from HPUX to printer attached to PC
I already set that up. But, how do you print a file? The command my application us is "lp -dprinter -onb"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-24-2006 11:25 PM
тАО09-24-2006 11:25 PM
Re: Print from HPUX to printer attached to PC
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-24-2006 11:47 PM
тАО09-24-2006 11:47 PM
Re: Print from HPUX to printer attached to PC
Have a look at Naveej's response in this thread:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=866355
PCS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-25-2006 12:59 PM
тАО09-25-2006 12:59 PM
Re: Print from HPUX to printer attached to PC
I also found a solution from our ERP vendor and it works!
thanks again! Continue the great works!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-25-2006 01:01 PM
тАО09-25-2006 01:01 PM
Re: Print from HPUX to printer attached to PC
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-25-2006 02:14 PM
тАО09-25-2006 02:14 PM
Re: Print from HPUX to printer attached to PC
passprint myfile
and myfile will be passed to the attached printer on the PC. Note that putty and Secure NetTerm (and other smart VT emulators) must be configured to point to a specific printer on the PC. All this script does is to add the escape codes before and after the print file.
#! /usr/bin/sh
if [ -r $1 ]
then
echo "/033[5i"
cat $1
echo "/033[4i"
else
echo Filename $1 must exist and be readable
fi
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-25-2006 02:18 PM
тАО09-25-2006 02:18 PM