- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- problem with a network printer
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
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
06-13-2002 11:04 PM
06-13-2002 11:04 PM
When I print a text file with lp command the printer prints the file whitout the CR: when starts a new line it begins to write from the next column in which finished the previous line.
If I print a pdf file the printer dosn't start to write from the first column of the paper sheet but more on the right.
Which parameters do I have to set and where can I set them?
Thanks
Stefano
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2002 11:16 PM
06-13-2002 11:16 PM
Re: problem with a network printer
You are printing a text file from a pc
Put it through dos2ux before printing.
see man page.
Jetadmin software is free
What type of printer is it.
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2002 11:21 PM
06-13-2002 11:21 PM
Re: problem with a network printer
If it's an HP printer, older model drivers are often valid for new models with unavailable drivers. If it's a new non-hp printer, they often offer emulation at some early hp level. You might try something like laserjet III for a minimal configuration; if that works, look for a specific drive for your model. Current jetadmin is available somewhere in hp-webland, which might contain the appropriate driver and/or uncorrupted drivers.
Duh - have you tried power cycling the printer?
greg.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2002 11:28 PM
06-13-2002 11:28 PM
Re: problem with a network printer
I haven't used jetdirect to configure the printer; and SAM didn't ask the model of printer during the configuration of the printer like a remote printer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2002 11:52 PM
06-13-2002 11:52 PM
Re: problem with a network printer
laters
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2002 12:01 AM
06-14-2002 12:01 AM
Re: problem with a network printer
# cd /etc/lp/interface
# cp printer1 printer1.org
# vi printer1
==> In between the line
shift; shift; shift; shift; shift
and
/usr/sbin/rlp -I$requestid $BSDC $BSD ..
append this
mv $1 ${file}~
( echo "^[&k3G"; cat ${file}~ ) > $1
Inserting the escape code can be tricky, you have to go to insert mode, while pressing CTRL, enter "v" and then ESC key followed by "&k3G".
Now try to print again ..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2002 12:24 AM
06-14-2002 12:24 AM
Re: problem with a network printer
I have configured two printer a lexmark and an HP; and i have the same problem on both.
I have try to use the suggest of Chan:
mv $1 ${file}~
( echo "^[&k3G"; cat ${file}~ ) > $1
but nothing is changed.
i haven't found any parameters in the man of lp ro rlp to set the use of CR/LF.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2002 12:27 AM
06-14-2002 12:27 AM
Re: problem with a network printer
If this is a HP printer then you should use Jetdirect
You lose 90% of a printers options otherwise.
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2002 02:59 AM
06-14-2002 02:59 AM
Re: problem with a network printer
Yesterday i had some problems to configure that printer like jetdirect printer in SAM.
Anyway I have a printer that give me the problem of above.
Stefano
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2002 03:37 AM
06-14-2002 03:37 AM
SolutionHowever, if you added to the printer to HP-UX as a remote printer, then rlp will be used, regardless of whether you are directing the print job to a PC server or to an HP JetDirect card or a non-HP network interface. Under these conditions, there is *NO* trasnlation of the data, and a plain ASCII file on all flavors of Unix contains:
text...LF more text...LF
whic is what you see on your paper (stairstep). This can only be fixed in two ways:
Instead of: lp -dMyPrinterName MyFile
Use: ux2dos MyFile | lp -dMyPrinterName
(the command ux2dos adds a CR to every LF, and the dos2ux command takes away the CR from every CR/LF pair)
or:
Assuming the printer is truly connected to the LAN by means of an HP JetDirect card, delete the printer in HP-UX with lpadmin -x and then run the addqueue command (found in /opt/hpnp/bin or /opt/hpnpl/bin) to add the printer. At that point, you'll have your expected output and options like -olandscape will start working.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2002 02:08 PM
06-14-2002 02:08 PM
Re: problem with a network printer
Stefano, if you don't have jetdirect, it's a free download from somewhere in hp printer support (not the software site or patch site), also distributed on the cd with new hp printers.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2002 06:05 PM
06-14-2002 06:05 PM
Re: problem with a network printer
However, the reason for the detailed explanation is the confusion over network printers versus remote printers (on print servers). SAM can add either but remote printers have very limited capability (unless the remote print server is also HP-UX). Thus, the preferred connection is through an HP JetDirect card in the printer. But if thatis not the case, the connection must be a remote printer.
Bill Hassell, sysadmin