- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- HP-UX lp command can't print PS file
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
10-09-2007 05:01 PM
10-09-2007 05:01 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2007 06:55 PM
10-09-2007 06:55 PM
Re: HP-UX lp command can't print PS file
You can use ghostscript to print.
http://hpux.cs.utah.edu/hppd/hpux/PostScript/ghostscript-8.56.0/
I think lp command may not support postscript
WK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2007 07:22 PM
10-09-2007 07:22 PM
Re: HP-UX lp command can't print PS file
generally, the lp command of course supports PostScript.
- Is it the same file you try via hpnpf and lp, which fails for lp?
- what is the type of the JetDirect printer - is it really capable to print PS files?
- what does the command 'file
- I think, there is a test under hppi, which can send testfiles of type PS to the printer
- What is the configured mode of the printer: PCL, PS, Auto?
mfG Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2007 08:24 PM
10-09-2007 08:24 PM
Re: HP-UX lp command can't print PS file
'file' returns 'postscript file -version 2.0'
Configured mode of printer is set to Auto. Tried setting to ps but it didn't help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2007 08:44 PM
10-09-2007 08:44 PM
Re: HP-UX lp command can't print PS file
Thanks for the ghostscript suggestion though.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2007 02:27 AM
10-10-2007 02:27 AM
Re: HP-UX lp command can't print PS file
lp -dmyprinter -o postscript myfile.pl
but the exact -o arguments depend upon the interface file and whether or not someone has customized the script from its original form. Most HP supplied interface files have a -o options argument that will print the arguments or direct you to a man page.
echo "Test" | lp -dmyprinter -o options.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2007 02:57 AM
10-10-2007 02:57 AM
Re: HP-UX lp command can't print PS file
So the problem is in the printer script. Now I have never seen lp say: "Processing data..." and that string is not present in any of the hppi printer scripts or the lp command. This makes the lp command quite suspicious. What do these commands report:
type lp
what /usr/bin/lp
Is it an alias? Do you have a wrapper for the lp command?
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2007 04:24 AM
10-10-2007 04:24 AM
Re: HP-UX lp command can't print PS file
@Bill:
reading the original post carefully, I else noticed just now
>>
I will see a "Processing data..." status on my printer
<<
So the data really goes to the printer - if no other user is currently printing, no paper is used for the print job. This remembers me to generated PostScript code, which missed a 'showpage' command.
Though you told us about the hpnpf:
If you submit the identical file to another PS printer - is the result OK?
mfG Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2007 05:57 AM
10-10-2007 05:57 AM
Solutionlp -dmyprinter -oraw myPostscriptFile.ps
If this is OK, then the script is not appropriate for the printer. Try copying the generic net_ljx000 to the printer's script location:
cp /opt/hpnpl/sh/net_ljx000 /etc/lp/interface/model.orig/myprinter
Try again. Printer scripts look intimidating but are quite simple in the way they work. You can replace the printer script anytime that printer is idle.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2007 11:24 AM
10-10-2007 11:24 AM
Re: HP-UX lp command can't print PS file
#lp -dqname postfile
what does "hpnpadmin -i QIPADDRESS" says.
what is the printer model?what is the current model script used?
ll /etc/lp/interface/qname
ll /etc/lp/interface/model.orig/qname
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2007 04:43 PM
10-10-2007 04:43 PM
Re: HP-UX lp command can't print PS file
In summary -
*Clay: -o postscript doesn't work for me but the `echo "Test" | lp -dmyprinter -o options` was a good pointer. The printout states to see the man page for my printer script (never thought the script would come with a man page :) ) From the man page, I see that I can parse the option "-o ps3" and that worked! This is one lead, tells me it only works with Postscript level 3.
*Peter: Sorry, it's the only PS printer I got on hand.
*Bill: -oraw doesn't work but -o raw generated this error:
===Start of printout===
ERROR: undefined
OFFENDING COMMAND: @PJL
STACK:
===End of printout=====
Your tip to replace the script in the model.orig is great. The current one has been modified by hppi. I replaced it with the original printer script for my printer and it worked! I can now use the lp command to print the postscript file without using options.
The printer script still looks intimidating to me so I just took a diff of the hppi-modified and original scripts. The original script sets PSLEVEL="2" while hppi for some reason modified this to PSLEVEL="3". Now it struck me why I needed to use the "-o ps3" option with the hppi-modified script.
The strange thing is that when PSLEVEL="3", I will not be able to change this option through hppi. With PSLEVEL="2", I can only set it to 1 or 2 through hppi. I decided to just edit the hppi-modified script to set PSLEVEL="2".
*Santhost: Fyi, "hpnpadmin -i QIPADDRESS" reports:
Printer Description:
--------------------
MFG :HP;
MDL :HP Business Inkjet 2800;
CMD :MLC,PCL5,PCLXL,PML,PJL,POSTSCRIPT,DYN;
CLS :PRINTER;
DES :HP Business Inkjet 2800;
Printer ID :4866
Thanks for all your great replies!