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



Darren,

Just before I received this, I set the sendfax command to use -D:

`/usr/local/bin/sendfax -D -i $jobseqno -n -f faxadmin\@sbs.com -d $faxphonenumber $obpdf`;

In /var/log/messages I see:

Jan 6 10:24:06 sqafaxer FaxSend[909]: SEND FAX: JOB 26 DEST 4405429143 COMMID 00000039 DEVICE '/dev/ttyS0'
Jan 6 10:24:39 sqafaxer FaxSend[909]: SEND FAX: JOB 26 SENT in 0:11
Jan 6 10:24:40 sqafaxer FaxQueuer[757]: NOTIFY: bin/notify "doneq/q26" "done" "0:47"


So bin/notify is being called, will this in turnd call FaxNotify then?

Adam
Darren Nickerson wrote:

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*








--


Adam Engel
IT Technician
Specialized Business Software
440.542.9145
adamengel@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx



____________________ 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