Discussion:
Faxes sent multiple times
Frank Becker
2005-02-15 12:47:42 UTC
Permalink
Hello dear readers!

Unfortunately I have another problem with capisuite. The outgoing faxes
are placed in an spool-dir outsite the capisuite-spooldirs (e.g.
/home/faxspool) and a cronjob converts the outgoing documents in
postscript and send it away using capisuitefax.

The problem now is, that the faxes are sent three times to the same number.

I'm using the following bash-script to send the outgoing docuuments on a
Debian Woody machine:

#!/bin/bash
# convert all outgoing documents to postscript
cd /home/tex_spool
ls *tex >/dev/null 2>&1
if [ $? -eq 0 ] ; then
for i in *tex; do

# converts the outgoing documents to postscript
/root/bin/convert_tex2 $i

done
fi
# send all converted faxes via capisuitefax
ls *ps >/dev/null 2>&1
if [ $? -eq 0 ] ; then
for i in *ps ; do

# the filenames for the documents are
# the faxnumber followed by a or b
# e.g. 0561123456a.ps or 0561123456b.ps
capisuitefax -d `echo $i|tr -d ab.ps` $i
mv $i /home/gesendete_faxe
done
fi


I cannot find an error in the script so I think that there is a
misconfiguration of capisuite or there may be a bug.

Thanx for reading.

Regards
Frank Becker


My fax.conf (only changed entries)

spool_dir="/home/asa/spool/"
fax_user_dir="/home/asa/spool/users/"
send_tries="5"
outgoing_MSN="98xxxxx"
fax_stationID="xxxx"
fax_headline="Fax von xxxxx"

[root]
#fax_numbers="98xxxxx"
fax_stationID="yyyyy"
fax_headline="blah"
fax_email="frank.becker-FH+3/***@public.gmane.org"
fax_action="MailAndSave"




Frank Becker
--
Blumenäckerweg 8a
34128 Kassel
mailto: frank.becker-FH+3/***@public.gmane.org
klickto: www.groupware4all.de
phoneto: 0561 17064
faxto: 01805 75 1111 7576
Frank Becker
2005-02-15 16:42:16 UTC
Permalink
Post by Frank Becker
Hello dear readers!
Unfortunately I have another problem with capisuite. The outgoing faxes
are placed in an spool-dir outsite the capisuite-spooldirs (e.g.
/home/faxspool) and a cronjob converts the outgoing documents in
postscript and send it away using capisuitefax.
Ok, sorry for my fast posting. The problem is solved.

The used script was executed every minute. But to enqueue 50 faxes takes
more than one minute so the script processed the remaining faxes.
Now cron executes the script every hour and that problem disappeared.

Thanx for reading.


Frank Becker
--
Blumenäckerweg 8a
34128 Kassel
mailto: frank.becker-FH+3/***@public.gmane.org
klickto: www.groupware4all.de
phoneto: 0561 17064
faxto: 01805 75 1111 7576
Loading...