HylaFAX The world's most advanced open source fax server

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Ghostscript options (Was Re: Automating faxes)



This is working for me (part of my faxrcvd)

FILE="$1"
DEVICE="$2"
COMMID="$3"
MSG="$4"
SENDER="`$INFO $FILE | $AWK -F: '/Sender/ { print $2 }' 2>/dev/null`"
PRINTER=lj4-1
SENDMAIL=/usr/lib/sendmail



TIF1=/tmp/fax1$$.tif
TIF2=/tmp/fax2$$.tif
TIF3=/tmp/fax3$$.tif
TIFFCP=/usr/local/bin/tiffcp
TIFFCONV=/usr/local/bin/mpack


################################
# Printing the fax on $PRINTER #
################################

$FAX2PS $FILE | lpr -P$PRINTER

**************************************************
* Uri Shkolnik - System Administrator            *
* Harmonic Lightwaves (Israel)                   *
* Tel: 972 4 8550180 Ext. 122   Fax: ~~ 8550181  *
* Email: uri@harmonic.co.il                      *
**************************************************

On Fri, 31 Jan 1997, Jonathan Chen wrote:

> On Wed, 29 Jan 1997, David Batterham wrote:
> 
> > This brings me to another point, slightly off topic - sorry!. I use LINUX
> > and so want to use Ghostscript to send a ps file to a remote printer
> > (HP laser jet 4 plus). Prob is if a print it through lpr it prints
> > gibberish and secondly ghostscript wont exit from the GS> prompt without
> > manual intervention, I'm using the -DNOPAUSE -q -sDEVICE and -OutputFile
> > commands, why won't this work?
> 
> Try:
> 	gs -q -OutputFile=- -sDEVICE=ljet4 -
> --
> Jonathan Chen                          e-mail : jonc@pinnacle.co.nz
>   Pinnacle Software Ltd                Voice  : +64.9.415.4460
>   Auckland, New Zealand                Fax    : +64.9.415.4250
> 
> 




Project hosted by iFAX Solutions