- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- lp and ux2dos
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
Forums
Discussions
Discussions
Discussions
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
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-05-2006 07:16 PM
09-05-2006 07:16 PM
For HPUX 10.20 S800, there is no problem for user printing document (lp) to existing dot matrix printer. A new network laser printer is added and will be replaced the dox matrix printer. When use "lp", the carriage return of line feed problem occur. From the forum, the problem can be solved by "$ ux2dox
However, programs of all applications should be changed if use ux2dos.
Can I rename /usr/bin/lp to /usr/bin/lporg, then I write a new scipt /usr/bin/lp to call "$ux2dos
As /usr/bin/lp is not text format and system level executable file, any impact if I rename /usr/bin/lp?
Thank you.
Thank you.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2006 08:23 PM
09-05-2006 08:23 PM
Re: lp and ux2dos
are you sure you have all the correct software for your printer installed.
We have used networked printers on HPUX 10 and 11, without encountering your problem.
You could do what you suggest, but this may be overwritten by a install and are you going to handle all the parameters for lp.
Check your /etc/lp/interface/
How did you set up your network printer (JetAdmin ..) ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2006 09:14 PM
09-05-2006 09:14 PM
Re: lp and ux2dos
I shouldn't change lp.
Simply change the model of your installed printer or add a new one.
Some configurations need carriage return, some not.
I don't know the pure commands.
You also can use SAM to change or add the printer.
HTH
Volkmar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2006 03:03 PM
09-06-2006 03:03 PM
Re: lp and ux2dos
checked "remote printer is on a BSD system"
remote cancal model: rcmodel
remote status model: rsmodel
When I use 'Add Network-based printer/plotter' --> 'Add printer/plotter connected to HP JetDirect': display 'HP JetDirect printer software is not installed on your system'
I don't know whether the rcmodel/rsmodel included HP8000 driver ?
Can I update the driver for HP8000 in HPUX ?
Moreover, can I edit /etc/lp/interface/
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2006 03:32 PM
09-06-2006 03:32 PM
Re: lp and ux2dos
Now here's the tricky part: the rmodel script uses rlp as the communication between HP-UX and the remote print server (in your case, a non-HP printer LAN). The easiest solution would be to put ux2dos as a filter in front of rlp but rlp won't accept STDIN as a substitute for the file to be printed. A couple of ideas:
1. Use ux2dos to copy $1 (in the script) to a temporary file, then change rlp command to use the temp file. Be sure to use traps to remove the file is=f the script aborts, and make the tempfile name unique with the script's PID. Then remove the tempfile when rlp is finished. This will slow down printing, especially with big print files.
2. Create a FIFO device file and use ux2dos to write $1 to the FIFO, then tell rlp to read from the FIFO rather than $1. You'll need to pick a unique name for the FIFO and handle removal the same as above (trap, etc).
3. The best method is to use an HP JetDirect LAN card. If your laser printer has a USB or parallel port on it, get an HP external JetDirect adapter, and use that as your network interface. Then add the printer using addqueue or hppi.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2006 04:01 PM
09-06-2006 04:01 PM
Re: lp and ux2dos
Thanks again
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2006 03:29 AM
09-07-2006 03:29 AM
Solution$1 = name of the printer_queue
$2 = requestID
$3 = userID
$4 = number of copies
$5 = all -o options
$6 = file to print
($7...) = more files to print if any
Now that's how the script is called. To put the ux2dos filter into place, you must modify the script itself. If you're not familiar with scripting, perhaps a consultant can help.
Another solution is to create a script that adds the ux2dos filter and passes the new image to lp. You'll need to handle the possible options as well as handle file(s) versus STDIN as the method users will use to do their printing.
Or change your printer to use an HP LAN card and use the HPPI software.
Bill Hassell, sysadmin