- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: besides using spool
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
тАО06-12-2002 03:17 PM
тАО06-12-2002 03:17 PM
besides using spool
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-12-2002 03:47 PM
тАО06-12-2002 03:47 PM
Re: besides using spool
To create a flat file with SQL*Plus, you first must enter the following SET commands:
SET NEWPAGE 0
SET SPACE 0
SET LINESIZE 80
SET PAGESIZE 0
SET ECHO OFF
SET FEEDBACK OFF
SET HEADING OFF
SET MARKUP HTML OFF SPOOL OFF
After entering these commands, you use the SPOOL command as shown in the previous section to create the flat file.
I have found my answer...thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-12-2002 04:10 PM
тАО06-12-2002 04:10 PM
Re: besides using spool
In the simplest method (but almost never used today), you connect the printer to a parallel port, then create the appropriate device file and use ux2dos to translate ASCII files on HP-UX and redirect the result to the device file.
If you use a serial connection, it becomes more complicated. After creating the appropriate serial device file, the default baud rate is 300 so you must keep one process running (like sleep) while redirecting sleep's input to the printer's device file and put it into the background. The use ux2dos to print ASCII files to the serial devicefile.
NOTE: parallel and serial connections have *NO* locking capability so if 2 or more users try to print on the printer, the text will interleaved and useless.
If the printer is connected to another computer, the complexity of sending the file with appropriate control commands is not worth the effort.
If the printer is connected to a non-HP LAN adapter, it will look exactly like another computer using rlp so the previous comments about remote printers will apply.
If the printer is connected to an HP JetDirect card and configured onto the network, the task is much simpler. First, download the latest HP Printer Installer software (free) from:
http://h20000.www2.hp.com/bizsupport/TechSupport/Product.jsp%3Flocale%3Den_US%26prodTypeId%3D13037%26prodSubCatId%3D28674
(sorry for the awful URL) Pick HP-UX 10.x or 11.x to match your system and install the software according to the instructions on the web site. To print a file, just use the hpnpf command as in:
/opt/hpnpl/bin/hpnpf -n -x 12.34.56.78 file_name
where 12.34.56.78 is the IP address of the printer and file_name is a plain ASCII file.
Now printing with controls (like landscape or duplex) is a bit more complicated. You'll first need a technical reference manual for the printer, then find the special escape sequences needed to change the printer's features. Then you'll have to prepend these sequences prior to each job, and also add reset sequences after each job to return the printer to a known state.
Or you can use the lp spooler (which is a whole lot easier).
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-12-2002 04:12 PM
тАО06-12-2002 04:12 PM
Re: besides using spool
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-12-2002 10:01 PM
тАО06-12-2002 10:01 PM
Re: besides using spool
Brian