#!/bin/sh
#
# This script is a wrapper to call the correct faxsend
# program, depending of the modem type
#
PARA=$*
SENDFAX=/usr/lib/fax/faxsend
m_found="no"
while [ $# -gt 0 ]; do
case $1 in
"-m")
m_found="yes"
;;
faxCAPI*)
if [ "$m_found" = "yes" ]; then
SENDFAX=/usr/bin/c2faxsend
fi
m_found="no"
;;
*)
m_found="no"
;;
esac
shift
done
$SENDFAX $PARA
I added commands to have an exact idea of what is passed as parameters
to c2faxsend, and it is as example:
c2faxsend -m faxCAPI sendq/q12which makes sense. The problem is that this command fails immediately with message
# c2faxsend -m faxCAPI sendq/q12
usage: c2faxsend.sav [-f format] [-C cfile] [-c param] [-m dev]
[-d number] [-P mailadr] [-v] [-V] [file(s)]
-f: Specify the output format. Allowed types are:
HYLAFAX (default), TIFF, SFF, G3
-C: Name and path of the config file
-c: One Entry from the config-file of type: {value}:{data}
-m: Virtual device name only needed for Hylafax. Default:
faxCAPI
-P: Fax Polling. At the end pollrcvd with "mailadr" is called
-v Start in verbose mode
-V Show version information
file(s): Depending on the format(-f) switch.
HYLAFAX: one qfile
SFF: one sff file
TIFF: one or more tiff file(s)
even if the parameters looks to me perfectly correct.
I even ran this command with "strace" to try to figure out what's wrong,
but I didn't found the reason of such behaviour.
Maybe the c2faxsend command is broken ? As it is proprietary software,
I'm stucked here.
I logged the output of this command when called by HylaFax suite, and it
is the error message above.
-- Brent Frère Directeur Technique Plan-Net s.à r.l. 8, rue des Martyrs L-3739 Rumelange Grand-Duché de Luxembourg Tél: +352-26.56.02.22 Fax: +352-26.56.02.55 http://plan-net.lu Le Service-Pack Plan-Net: l'abonnement services qui met à votre disposition immédiate une équipe multi-disciplinaire en informatique: * Réseaux, solutions libres et traditionnelles * Sites web et Intranet * Développement sur mesure * Gestion de projets * Infographie (communication et technique) This e-mail signature can be checked if you have the CaCERT certificate installed. Check http://www.CaCERT.org for details.
begin:vcard fn:Brent Frere n:Frere;Brent org;quoted-printable:Plan-Net s.=C3=A0 r.l. adr:;;8, rue des Martyrs;Rumelange;Luxembourg;L-3739;Union Europeenne email;internet:Brent.Frere@Plan-Net.lu title:Directeur Technique tel;work:+352-26.56.02.22 tel;fax:+352.26.56.02.55 tel;pager:- tel;home:- tel;cell:- note;quoted-printable:Le Service-Pack Plan-Net: l'abonnement services qui met =C3=A0 votre disp= osition imm=C3=A9diate une =C3=A9quipe multi-disciplinaire en informatiqu= e:=0D=0A= =0D=0A= * R=C3=A9seaux, solutions libres et traditionnelles=0D=0A= * Sites web et Intranet=0D=0A= * D=C3=A9veloppement sur mesure=0D=0A= * Gestion de projets=0D=0A= * Infographie (communication et technique)=0D=0A= =0D=0A= This e-mail signature can be checked only if you have the CaCERT certific= ate installed.=0D=0A= Check http://www.CaCERT.org for details. x-mozilla-html:TRUE url:http://plan-net.lu version:2.1 end:vcard
Attachment:
smime.p7s
Description: S/MIME Cryptographic Signature