- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: LP Remote to Sun/Xerox causing embedded chara...
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
04-29-2003 08:56 AM
04-29-2003 08:56 AM
LP Remote to Sun/Xerox causing embedded characters
According to Xerox, the lpr process must be embedding control characters into the file causing it to not print correctly. It will print the first line correctly, the second line starts one line below and just after the last character of the first line:
page one line one herexxx
page one line two here
Xerox won't help, stating the issue is with our HP lpr. I set this up via sam.
Ideas?
Thanks in advance,
Doug
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2003 09:23 AM
04-29-2003 09:23 AM
Re: LP Remote to Sun/Xerox causing embedded characters
How is the print queue on your Sun box set up? Often times a printer will provide both a raw print queue that does no translation, and a text queue that converts terminating LF to CR/LF. Directing print-outs to the test queue would automatically solve your problem.
Also, you could convert the file before sending it off to be printed, using a tool like ux2dos to do the LF -> CR/LF conversion.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2003 09:37 AM
04-29-2003 09:37 AM
Re: LP Remote to Sun/Xerox causing embedded characters
Doug
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2003 09:45 AM
04-29-2003 09:45 AM
Re: LP Remote to Sun/Xerox causing embedded characters
Maybe Xerox has the same for HP-UX.
Unless of course the printer does not have an ip address...
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2003 10:13 AM
04-29-2003 10:13 AM
Re: LP Remote to Sun/Xerox causing embedded characters
Search for UNIX and Drivers and download the PrinterPkgXPXX.tar file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2003 04:25 AM
05-01-2003 04:25 AM
Re: LP Remote to Sun/Xerox causing embedded characters
Anyway, humour (sp?) us and do:
cat file.txt | ux2dos | lp -d
and report the results.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2004 07:02 AM
01-20-2004 07:02 AM
Re: LP Remote to Sun/Xerox causing embedded characters
What model printer was this? I can't find any Unix drivers for our docutech printer.
Can you post a link for the driver?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2004 07:08 AM
01-20-2004 07:08 AM
Re: LP Remote to Sun/Xerox causing embedded characters
the lp process does not embed any characters *in* the print job nor prepend/append any as well. It sends the data raw to the remote print server.
All you need to do is get into the menu on that printer & find in it's config the setting about LF & change it to LF=LF+CR. We have to do this to almost all type laser printers - including HP LaserJets.
Winblows boxes automatically send CR+LF - UNIX boxes ONLY send LF & the printer is doing exactly what it's told. This *won't* screw up any Windoze jobs because the ptr will only modify the LF & not touch the LF+CR
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2004 01:54 PM
01-20-2004 01:54 PM
Re: LP Remote to Sun/Xerox causing embedded characters
So your files must be preprocessed for the printer. As Jeff mentioned, your printer may be smart enough to treat LF=CR+LF but this may cause problems with binary files. The best solution is to pipe all ASCII files through the conversion filter ux2dos:
ux2dos some_ASCII_file | lp -dremote_printer
As a note, there is no lpr command with HP-UX. HP-UX has a SysV print spooler so the command is lp and printer scripts define printer options. In a BSD system, lpr is the print command and a file called printcap defines printer features. These are very different philosophies and require special treatment when mixing systems using remote spooling.
(for the nit-pickers: /usr/bin/lpr is actually a wrapper script for lp)
Bill Hassell, sysadmin