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] FaxNotify not running



Adam,

By default, HylaFAX will only excute the NotifyCmd when there's a problem with the job. To enable notification for both successful and failed completed jobs, you need the -D argument to sendfax (see http://www.hylafax.org/man/4.2.4/sendfax.1.php). If you want to run the script on retries as well, you want -R instead of -D.

-Darren


----- Original Message ----- From: "Adam Engel" <adamengel@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Cc: <hylafax-users@xxxxxxxxxxx>
Sent: Friday, January 06, 2006 9:58 AM
Subject: [hylafax-users] FaxNotify not running



Hey All,

I am trying to get our FaxNotify script to parse out the reason why the fax Failed from /var/spool/hylafax/log/c$commid, send an email to a faxadmin group via qmail-inject, then run a perl script that will update our database of fax information.

The perl script is called as such:

/usr/bin/perl faxstatus.pl "$jobtab" "$WHY" "$status";

$status is gotten after doing a few 'if' statements after grepping for the several reasons that it can fail.

I can run that by hand, as well as the command for emailing. However, when we send a fax from the fax server, it does not look like FaxNotify is being called. I have tried putting some testing notes at the beginning of FaxNotify to see if its even being called but it doesn't look like they are being executed either.

Could I possibly be missing something in order to get this to be called after every fax is sent?

-Adam


____________________ 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@xxxxxxxxxxx < /dev/null
*To learn about commercial HylaFAX(tm) support, mail sales@xxxxxxxxx*





____________________ 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@xxxxxxxxxxx < /dev/null
 *To learn about commercial HylaFAX(tm) support, mail sales@xxxxxxxxx*




Project hosted by iFAX Solutions