HylaFAX The world's most advanced open source fax server

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

Re: [hylafax-users] impossible to send incoming fax to local printeror e-mail



Hi,
you already posted this question one day ago and may be didn't get the 
answer:

> 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

this script is out of date and does not run with actual HylaFAX 
distributions without changes. It exits here, because the number of 
parameters of actual versions is 7 and not exactly 4.
You could change this to

if [ "$#" -lt "4" ]; then

as a try.

If this is not the reason because you use an older version of HylaFAX, 
call bin/faxrcvd manually with the parameters of the logfile and see 
what happens.

> 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
> }

--
holger


____________________ 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.*




Project hosted by iFAX Solutions