Thread View: gnu.ghostscript.bug
1 messages
1 total messages
Started by Bo Thide'
Mon, 23 Nov 1992 13:19
Summary: Can ghostscript be used as a simple UNIX filter?
Author: Bo Thide'
Date: Mon, 23 Nov 1992 13:19
Date: Mon, 23 Nov 1992 13:19
38 lines
1565 bytes
1565 bytes
Thanks to all who replied:
David Jackson <mbhepdj@meehpa.ee.man.ac.uk>
ndiaye@cs.uni-sb.de (Alassane Ndiaye)
Wolfgang STEGER <sw@diabas.tuwien.ac.at>
The solution I've chosen for the moment is a slight variation
of a script by David Jackson:
#!/bin/sh
if test $# = 0
then
filename="-"
else
filename=$1
fi
/usr/local/bin/gs -q -dNOPAUSE -sDEVICE=laserjet -r300 \
-sOutputFile=\|"/bin/cat" $filename /usr/local/lib/ghostscript/quit.ps
exit
where /usr/local/lib/ghostscript/quit.ps contains the single word 'quit'.
As an alternative, Wolfgang Steger suggests file redirection:
gs [gs options] -sOUTPUTFILE='cat >&3' files ... 3>&1 2>logfile 1>&2
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-
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads