- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Printing to a PC unit
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-28-2005 12:08 PM
тАО04-28-2005 12:08 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-28-2005 01:10 PM
тАО04-28-2005 01:10 PM
Re: Printing to a PC unit
For passthrough printing, you'll need to use a smart terminal emulator such as WRQ's Reflection for Unix (not Reflection/X). Then create a new report writer that sends the plain ASCII reports to the passthrough feature (just escape sequences). If your ERP application doesn't have an character mode interface, this will be a problem.
Note also that about the only common feature in home printers is that they print on paper. Things like font pitch and point size, characters per line, lines per page, printable margins, etc all come into the design.
So your only practical solution is a web page for reports so that the local user's printer driver will handle the formatting. Naturally, a 500 page report may be a bit tricky to put into a web page interface, but it's a simple matter of programming. ;-)
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-28-2005 05:50 PM
тАО04-28-2005 05:50 PM
SolutionYou can do this in one way..if you are login to the hpux box from the win2k/win98 pc. For this you should have a third party telnet application like secureCRT, netterm, etc.
creat a file called localprn with the following contents in the HPUX server (/usr/bin/localprn)
echo "\033[5i"
cat $*
echo "\033[4i"
Give execute permissions.
and then you say localprn file name the print request will be redirected to your local pc. For this the normal telnet application available in win2k pro /win 98 will not work.
Configure the printer with the terminal emulation software and it prints.
Atleast it works for me!!!
with best wishes
naveej
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-28-2005 06:16 PM
тАО04-28-2005 06:16 PM
Re: Printing to a PC unit
you can search google for "RPM Windows to UNIX" and check for the tools.
you can install them on PCs and queue your unix jobs.
check out..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-28-2005 11:50 PM
тАО04-28-2005 11:50 PM
Re: Printing to a PC unit
echo "\033[5i"
...
echo "\033[4i"
are actually specific to DEC VT-series terminals (the most common terminal emulation) but certainly not the only one. Rather than use hardcoded sequences, it is better to use codes that are appropriate for the terminal being used. To do this, the Curses library was developed and a database of hundreds of terminal models was created called terminfo (/usr/lib/terminfo). To make scripting a lot easier, there is a terminal-specific interface to these features called tput and for pass-through printing, the code would look like this:
echo "$(tput mc5)\c"
...
echo "$(tput mc4)\c"
In this way, the escape codes will be tailored to the terminal type. Note that HP terminals have a more complicated handshake. After sending the mc4 string, HP terminals will respond with S (success) or F (fail). This is used to verify that there is a printer attached. For VT-series (and Wyse, AnnArbor, Televideo, etc) the pass-through sequence is the simple mc5/mc4 pair as above.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-29-2005 01:27 AM
тАО04-29-2005 01:27 AM
Re: Printing to a PC unit
Bring up a browser to view the work and since the browser is local to the PC, can print the local display from the PC.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-29-2005 01:53 AM
тАО04-29-2005 01:53 AM
Re: Printing to a PC unit
Works well over WAN
http://www.networkinstruments.com/
Dimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-30-2005 12:33 PM
тАО04-30-2005 12:33 PM
Re: Printing to a PC unit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-30-2005 06:32 PM
тАО04-30-2005 06:32 PM
Re: Printing to a PC unit
It can be acived through Novell's iprint services as well.
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-01-2005 07:27 PM
тАО05-01-2005 07:27 PM
Re: Printing to a PC unit
If the problem is 'how to setup this to many clients', and you happen to have Citrix or something available as well: define in there a printer that uses the destkop printer and print to that.
In the middle: have the unix system print to 'pdf'-file to a known location and let them print that.