![]() |
![]() |
| Home | What's New | Products | Download | Purchase | Support | About Us | Contact |
SUPPORT > TIPS
|
|
|
|
You may be a programmer looking for a quick and easy way to print source files directly to your local printer. Or perhaps you are developing an in-house application and want to roll out a mechanism for end users to print directly from their terminal to a desktop printer. Sometimes remote applications don't support pass-through printing or you need to modify the process in some way. A customized script, such as the Perl script example in this tip, can be an effective solution. The script notes provide you with all of the escape sequences for the emulations supported by SecureCRT®. The script shows you a simple example of how to use the escape sequences, which you can modify or build on to suit your particular needs. To try out this script, you'll have to select the appropriate modification for your emulation and specific needs, then decide whether to send the output to the printer, the screen, or both. Once the script is on the remote host, simply cat the file you want to print and pipe it to the script. When the script stops receiving data, it will send the output to SecureCRT, which then handles sending the file on to the selected printer (you can also print to a text file ). The script buffers all of the data, so you don't need to worry about printing one line per page. Pass-through printing is turned on by default in SecureCRT. To make sure it is turned on for a particular session, go to Session Options / Printing. The Disable Pass-Through Printing option should be disabled. You should also make sure that the Buffer Pass-Through Printing option is disabled, in Session Options / Printing (versions before 6.6 display these options in Printing / Advanced). Here is the sample Perl script for pass-through printing in its entirety: ptp.pl.txt (for this script to work properly, you should save the file without the .txt extension). ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Begin ptp.pl ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #!/usr/bin/perl ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ End ptp.pl ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||||||||||||||
| Products | Downloads | Purchase | Support | About Us | |
|---|---|---|---|---|---|
| VShell Server | VShell Server | Buy Direct | Evaluation | Contact | |
| SecureCRT | SecureCRT | License Pricing | Updates Policy | Press Releases | |
| SecureFX | SecureFX | About Encryption Export | FAQs | What's New | |
| VanDyke ClientPack | VanDyke ClientPack | Orders FAQ | Tips & How-Tos | Customer Stories | |
| Beta Software | Beta Software | Resellers | Forums | Secure Solutions | |
|
Site Map | Legal Notices | Privacy Policy | Refund Policy VShell, SecureCRT, SecureFX, Entunnel, CRT, and AbsoluteFTP are trademarks or registered trademarks of VanDyke Software, Inc. in the United States and/or other countries. All other trademarks or registered trademarks are the property of their respective owners. Copyright © 1995 - VanDyke Software, Inc. All rights reserved. |
|||||