- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Print from Putty
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
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
тАО01-19-2011 01:06 AM
тАО01-19-2011 01:06 AM
Print from Putty
- Tags:
- putty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-19-2011 01:26 AM
тАО01-19-2011 01:26 AM
Re: Print from Putty
1. Check for any ongoing print job:
#> /usr/bin/lpstat -u
#> /usr/bin/lpstat -o
Cancel print job if necessary:
#> /usr/bin/cancel
2. Stop the LP spooler:
#> /usr/sbin/lpshut
3Test the print queue as following:
#> lp -d
#> lpstat -t
3. Restart the LP spooler:
#> /usr/sbin/lpsched
Thanks
Manix
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-19-2011 01:56 AM
тАО01-19-2011 01:56 AM
Re: Print from Putty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-19-2011 02:05 AM
тАО01-19-2011 02:05 AM
Re: Print from Putty
Start with script command to capture all works.
At the end stop capturing with command Ctrl+D
then ftp the typescript file to the local and print..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-19-2011 02:06 AM
тАО01-19-2011 02:06 AM
Re: Print from Putty
what I want is when print to /dev/tty , the output will go to default printer , can advise what can i do ? thx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-19-2011 02:16 AM
тАО01-19-2011 02:16 AM
Re: Print from Putty
Putty is an emulator installed in your wintel client, any print request from Putty will be done against a printer device under wintel control (lpt1, usb, lan).
By other way, Putty allows you connect work sesions with your unix box, these sesions allow you executes native commands of unix, one of them could be lp (unix printer command). Previously also you need defined into unix a printer queue to accept and manage printers request that will be printed by devices attached at unix environment (parallel ports, lan).
You must understand these differences when you requires done a printer request.
Rgds.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-19-2011 03:02 AM
тАО01-19-2011 03:02 AM
Re: Print from Putty
Hard to explain by a post. Please go at "Printer" theme (page 64) inside of HP-UX System Administrator's Guide:
http://h20000.www2.hp.com/bc/docs/support/SupportManual/c02281492/c02281492.pdf
rgds.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-19-2011 04:44 AM
тАО01-19-2011 04:44 AM
Re: Print from Putty
Some programs have the ability to 'print' but really, the program is just inserting the start print characters followed by the text to print and terminated by a stop print character string. Here are some note from the PuTTY pages:
http://the.earth.li/~sgtatham/putty/0.58/htmldoc/Chapter4.html
Look for Remote-controlled Printing.
The tricky part is that PuTTY sends 'raw' text, that is, whatever is written to the screen is sent as-is to the printer. Many, many cheap printers today cannot print simple text like "abc". Instead, it must be converted to a series of dots on the page, compatible with the dot-language used by the printer. Without proper formatting, the text is ignored or produces printer errors.
So your mileage may vary. If you have a daisy wheel or high-end laser printer that can format and print plain ASCII, this may work.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-19-2011 05:46 PM
тАО01-19-2011 05:46 PM
Re: Print from Putty
Thanks for help .