home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: gnu.ghostscript.bug
- Path: sparky!uunet!cis.ohio-state.edu!irfu.SE!bt
- From: bt@irfu.SE (Bo Thide')
- Subject: Summary: Can ghostscript be used as a simple UNIX filter?
- Message-ID: <1992Nov23.131933.24375@irfu.se>
- Sender: gnulists@ai.mit.edu
- Organization: Swedish Institute of Space Physics, Uppsala, Sweden
- Distribution: gnu
- Date: Mon, 23 Nov 1992 13:19:33 GMT
- Approved: bug-ghostscript@prep.ai.mit.edu
- Lines: 40
-
- 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-
-
-
-