🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.next.programmer
Article #2155

Re: Printing postscript from a shell script

#2155
From: Michael Pizolato
Date: Fri, 18 Dec 1992 21:56
39 lines
2210 bytes
In article <1992Dec17.161132.1733@afs.com> Michael_Pizolato@afs.com (Michael  
Pizolato) writes:
> What command(s) do I need to print a postscript file (.ps, .eps) from a
> shell script?  I have no printer on my local machine, but we have a
> network-wide printer that is the default for everything else.  The
> only command-line utility that can find the printer seems to be
> enscript(1), but that prints the text of the postscript source, not
> the results of processing the postscript.  Stuff like pslpr(1) can't
> even find the printer, even if I use the -P option and name the printer
> explicitly.  
> 
> I have already RTFM.  In fact, I have RTFM to death :-(, and tried it many
> different ways, so please reply only if you have done this
> successfully.  

In article <1992Dec17.191304.2107@afs.com> Michael_Pizolato@afs.com (Michael
Pizolato) writes again:
> What a moron!  The bug is in your postscript code, not the printing
> utilities.  Next time think a little before posting such crap. 
> Please, don't anyone dignify this garbage with a reply. 

I seem to have caused a _huge_ number of people to think I was abusing
some poor soul who is an obvious beginner in postscript programming
(read the sender of both messages - and how could I know his problem was
with his postscript when he never posted it?).  That beginner is _me_,
and I was forgetting to put a "showpage" statement at the end of each
page, thus nothing came out of the printer.     

All you flamers can relax now.  Thanx to many others who sent in helpful
replies - sorry I didn't debug my original code better.  lpr(1) works
just fine to print _correct_ postscript files.  :-)   

Michael

--
Michael_Pizolato@afs.com
~18 kyu
Q16
NeXTMail appreciated
Technical Details
Message-ID: <1992Dec18.215648.2056@afs.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!psinntp!afs!michael
References: <1992Dec17.161132.1733@afs.com>

Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.programmer,comp.sys.next.misc,comp.sys.next.software
Path: arc1-ca.pugleaf.net!sparky!uunet!psinntp!afs!michael
From: Michael_Pizolato@afs.com (Michael Pizolato)
Subject: Re: Printing postscript from a shell script
Message-ID: <1992Dec18.215648.2056@afs.com>
Sender: Michael_Pizolato@afs.com
Reply-To: Michael_Pizolato@afs.com
References: <1992Dec17.161132.1733@afs.com>
Date: Fri, 18 Dec 1992 21:56:48 GMT
Lines: 39