Hylafax Mailing List Archives

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

[hylafax-users] impossible to send incoming fax to local printer or e-mail



Hi I have the following problem :
When I receive an incoming fax, I want to send a copy to a printer ( attached 
on the local server, using cups ), as well as an e-mail. All faxes have to be 
send to the same e-mail account, so it should be straightforward.
However I receive the following message :

Jun 20 09:32:08 server FaxGetty[2880]: Bad exit status 0400 for 'bin/faxrcvd 
"recvq/fax00035.tif" "ttyS0" "00000036" "" "" "" ""'

any ideas  (
my faxrcvd lokks like this :
#
#
# faxrcvd file devID commID error-msg
#
# modified faxrcvd from hylafax which calls faxrcvd-mail
#
if [ $# != 4 ]; then
    echo "Usage: $0 file devID commID error-msg"
    exit 1
fi
FILE="$1"
DEVICE="$2"
COMMID="$3"
MSG="$4"
TRUNCFILE=`echo $FILE | sed -e 's/\.tif//'`

test -f etc/setup.cache || {
    SPOOL=`pwd`
    cat<<EOF

FATAL ERROR: $SPOOL/etc/setup.cache is missing!

The file $SPOOL/etc/setup.cache is not present.  This
probably means the machine has not been setup using the faxsetup(1M)
command.  Read the documentation on setting up HylaFAX before you
startup a server system.
EOF
    exit 1
}
. etc/setup.cache
/usr/bin/tiff2ps -a -O $SPOOL/$TRUNCFILE.ps $SPOOL/$FILE
/usr/bin/lpr -Plp /$SPOOL/$TRUNCFILE.ps
/usr/bin/ps2pdf13 $SPOOL/$TRUNCFILE.ps $SPOOL/$TRUNCFILE.pdf

TOADDR=marc
PATH="$SPOOL/sbin:$SPOOL/bin:$PATH"
#
# If you're using faxcron and would like to have the recvq file removed if
# mail delivery was successful, then uncomment this if clause and comment
# the line(s) following.
#
#if faxrcvd-mail "$FILE" "$DEVICE" "$COMMID" "$MSG" "$TOADDR" fax 
"$TRUNCFILE.pdf" | \
#/usr/sbin/sendmail $TOADDR; then
#       rm -f $SPOOL/$TRUNCFILE*
#fi
if faxrcvd-mail "$FILE" "$DEVICE" "$COMMID" "$MSG" "$TOADDR" fax 
"$TRUNCFILE.pdf" | \
/usr/sbin/sendmail $TOADDR; then
        rm -f $SPOOL/$TRUNCFILE.pdf
fi



____________________ HylaFAX(tm) Users Mailing List _______________________
  To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi
 On UNIX: mail -s unsubscribe hylafax-users-request@hylafax.org < /dev/null
  *To learn about commercial HylaFAX(tm) support, mail sales@hylafax.org.*



Home
Report any problems to webmaster@hylafax.org

HylaFAX is a trademark of Silicon Graphics Corporation.
Internet connectivity for hylafax.org is provided by:
VirtuALL Private Host Services