Operating System - HP-UX
1822818 Members
4204 Online
109645 Solutions
New Discussion юеВ

Can you use lp with postscript printq

 
TCEQ UNIX
Advisor

Can you use lp with postscript printq

Can you print from postscript print queue on UNIX env without using a2ps. For example if uxps is postscript print queue :

lp -duxps test : will not send the print job to printer. Any suggestions ??
He who does not slow down at the sight of a police car is usually parked.
9 REPLIES 9
A. Clay Stephenson
Acclaimed Contributor

Re: Can you use lp with postscript printq

That depends entirely on the capabilities of the printer itself and on the interface file in /var/spool/lp/interface/printername.

THe interface file is simply a shell script. Look for the options in the file. A very typical one would by lp -dmyprinter -o ps myfile.
If it ain't broke, I can fix that.
Pete Randall
Outstanding Contributor

Re: Can you use lp with postscript printq

Or you can do "lp -o options" to get a full list of options available to you. It (hopefully) will list "-o ps" as one of the options.

Pete

Pete
TCEQ UNIX
Advisor

Re: Can you use lp with postscript printq

printer type is laserjet 5si and print server is HP11. uxp is ASCII printer and uxps is postscript print queue

if I use lp -duxp -o ps myfile --- does not print anything.

but if I use a2ps filename|lp -duxps - it works.

BUT the problem I am having is a2ps does not translate some control characters on the report so print format does not look correct. that is the reason I am trying to avoid a2ps.

Any suggestions ?
He who does not slow down at the sight of a police car is usually parked.
Sandip Ghosh
Honored Contributor

Re: Can you use lp with postscript printq

Better you download hp jetadmin Software from HP website and configure the printer under that. It is available free.

Sandip

http://www.hp.com/cposupport/networking/support_doc/bpj06084.html
Good Luck!!!
Pete Randall
Outstanding Contributor

Re: Can you use lp with postscript printq

Hi,

You said "uxp is ASCII printer and uxps is postscript print queue" and then said "if I use lp -duxp -o ps myfile --- does not print anything." I would think you would want to use the postscript print queue "uxps" rather than "uxp". Have you tried that combination?

Pete

Pete
A. Clay Stephenson
Acclaimed Contributor

Re: Can you use lp with postscript printq

The problem is that you are trying to use a postscript printer to print what is patently ASCII text. The solution is not to use postscript but rather to write a filter (awk,Perl,shell, or C) to read stdin and transform it to fit your needs before sending to stdout and thence to lp. This is a rather common task that you as an admin should be able to handle. The best answer is to , of couse, modify the original source to produce the desired output.

If it ain't broke, I can fix that.
TCEQ UNIX
Advisor

Re: Can you use lp with postscript printq

Well I tried both ways lp -duxp -ops myfile
and lp -duxps -ops myfile (and without -ops ), I can see the file on queue but after that it just disappers.

so I am thinking unles I use a2ps with postscript print queue I can not just use lp - is that right. I have already installed hppi driver too. Any suggestions ?

thank you.
He who does not slow down at the sight of a police car is usually parked.
Leif Halvarsson_2
Honored Contributor

Re: Can you use lp with postscript printq

Hi
When you created the postscript printer, which model interface do you used. If you used the "postscript" interface you should use "-oa" or "-oascii" if printing an ascii file.
TCEQ UNIX
Advisor

Re: Can you use lp with postscript printq

I use hppi to create print queue and set to PS for postscript. modelscript is net_lj5x

if I could use lp with postscript print Q it would print report properly.
He who does not slow down at the sight of a police car is usually parked.