Article View: gnu.ghostscript.bug
Article #546Can ghostcript be used as a simple UNIX filter?
From: Bo Thide'
Date: Sun, 22 Nov 1992 15:32
Date: Sun, 22 Nov 1992 15:32
29 lines
1756 bytes
1756 bytes
I have tried to use ghostscript 2.5.2 as a simple UNIX filter for translating
pictures from PostScript to a supported output language (PCL, pbm, ...).
Despite numerous attempts with various combinations of the flags -q,
-sDEVICE, -dNOPAUSE, and -sOUTPUTFILE, I have failed miserably.
What I want is:
(1) To be able to send processed output directy to stdout.
(2) Avoid getting caught inside ghostscript (I don't want to
see the 'GS>' prompt, ever).
Surely this must be possible or is there a serious design flaw in ghosctript?
The closest I have got is
gs -q -sDEVICE=ljet3 -r300 -dNOPAUSE -sOUTPUTFILE='|lp -or'
but it does not give either (1) or (2) above since it prints to |lp -or
and not to stdout and I still have to type 'quit" at a 'GS>' prompt. This
is unacceptable in my application where I just want to filter PS data.
Any help much appreciated. Please e-mail.
Bo
--
^ Bo Thide'----------------------------------------------Science Director
|I| Swedish Institute of Space Physics, S-755 91 Uppsala, Sweden
|R| Phone: (+46) 18-303671. Fax: (+46) 18-403100. IP: 130.238.30.23
/|F|\ INTERNET: bt@irfu.se UUCP: ...!mcvax!sunic!irfu!bt
~~U~~ ----------------------------------------------------------------sm5dfw-
Technical Details
Message-ID:
<1992Nov22.153252.26730@irfu.se>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!irfu.SE!btShow Full Headers
Complete Article Headers
Newsgroups: gnu.ghostscript.bug Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!irfu.SE!bt From: bt@irfu.SE (Bo Thide') Subject: Can ghostcript be used as a simple UNIX filter? Message-ID: <1992Nov22.153252.26730@irfu.se> Sender: gnulists@ai.mit.edu Organization: Swedish Institute of Space Physics, Uppsala, Sweden Distribution: gnu Date: Sun, 22 Nov 1992 15:32:52 GMT Approved: bug-ghostscript@prep.ai.mit.edu Lines: 31