Hylafax Mailing List Archives

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

[hylafax-users] Can't use sendfax out of cgi-script



Hi everyone,

I have the following problem. I cant use sendfax out of my cgi script. I am
going to post the part of code below. Is there any known restriction to
sendfax? I am printing out the same line to the webbrowser after The
systemcall and with this call the program starts nicely and queues the fax
and faxes it out.

Any clues anyone?
any help is highly appreciated. 

Kind regards
Juergen Hoffmann

sub send_fax_mail() {
    my $fax;
    foreach $fax (@fax_recipients) {
        $systemcall = "/usr/bin/sendfax -n -d0\,$fax /tmp/$destination.$date.txt";
        $debug .= `$systemcall`;
        $debug .= $systemcall.br;
    };
    close($fh);
    $debug .= h /tmp/$$.fax;
    foreach (@mail_recipients) {
        $systemcall = "cat /tmp/$destination.$date.txt | mail -s \"Ihr Internet Formular wurde mit den folgenden Daten ausgefüllt
        system($systemcall);
        $debug .= $systemcall.br;
    };
    # `rm /tmp/$destination.$date.txt`;
}

-- 
Mit freundlichen Gruessen
Juergen Hoffmann
-------------------------------------------------------------------------------
LueneCom ISC                                                   Juergen Hoffmann
Rote Str. 9-10                                             System Administrator
21335 Lueneburg
+49-4131-731904                                                  jh@luenecom.de
+49-4131-731906                                          http://www.luenecom.de
-------------------------------------------------------------------------------
my quote of the day:
    Having wandered helplessly into a blinding snowstorm Sam was greatly
    relieved to see a sturdy Saint Bernard dog bounding toward him with
    the traditional keg of brandy strapped to his collar.
    	"At last," cried Sam, "man's best friend -- and a great big dog, too!"


____________________ HylaFAX(tm) Users Mailing List _______________________
 To unsub: mail -s unsubscribe hylafax-users-request@hylafax.org < /dev/null



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