Hylafax Mailing List Archives
|
[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
Re: [hylafax-users] FaxNotify not running
Actually, I ran that whole notify script by hand and got the following
output:
# ./notify "doneq/q26" "done" "0:47"
FATAL ERROR: /var/spool/hylafax/bin/etc/setup.cache is missing!
I copied what I have in /var/spool/hylafax/etc and created the directory
above and coppied the setup.cache file there.
Now I am getting somewhere. I re-ran the script. and got the following
output
# ./notify "doneq/q26" "done" "0:47"
gawk: cmd. line:21: fatal: cannot open file `doneq/qdoneq/q26' for
reading (No such file or directory)
No recipient addresses found in header
I moved to /var/spool/hylafax and ran it again
# ./bin/notify "doneq/q26" "done" "0:47"
gawk: cmd. line:21: fatal: cannot open file `doneq/qdoneq/q26' for
reading (No such file or directory)
cat: /var/spool/hylafax/log/c: No such file or directory
trash@xxxxxxxxxxxxxxxxxxxxxxxxx User unknown
CHEER! NOW its calling FaxNotify. I know this because the "No such file"
error comes from:
transcriptfile="/var/spool/hylafax/log/c$commid";
Im going to send another fax to through with the sendfax command and see
if the $COMMID varialbe is passed in correctly.
-Adam
Adam Engel wrote:
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.html). 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*