Re: how to see what hylafax is doing.. live

Bodo Meissner <[email protected]>
Newsgroups gmane.comp.telephony.fax.hylafax.user
Message-ID <[email protected]>
Zitat von Antonio Lapira <[email protected]>:

> at the moment, to see the log using sendfax, I'm doing this:
> rm -rf /var/spool/hylafax/doneq/*
[...]

> sendfax -w -G -B 9600 -t 1 -T 1 -n -d 06...... fax.tif
> sleep 1
> cat /var/spool/hylafax/log/c000000001
> cat /var/spool/hylafax/doneq/q1
[...]

Run "sendfax -G -B 9600 -D -n -d 06...... fax.tif"

Save the original notify.sh and common-functions.sh scripts and modify  
them to see what's going on.
Write the interesting information to a log file.
I refer to these source files:
  http://git.hylafax.org/HylaFAX?a=blob;f=util/notify.sh.in;hb=HEAD
  http://git.hylafax.org/HylaFAX?a=blob;f=util/common-functions.sh.in;hb=HEAD

At the start of notify.sh after the comment block add something like this:
echo "=======" >> /tmp/notify.log
echo $0 $* >> /tmp/notify.log

In common functions.sh in function parseQfile() add something like  
this at the end of the function
cat $TMPDIR/qfile-awk.sh >> /tmp/notify.log

The qfile contains references to other files, maybe only the  
corresponding number, e.g. 1 as a reference to c000000001 (At the  
moment I don't have access to my HylaFAX server to check.)

With the command line arguments and the variables created by  
"parseQfile" you should be able to find the files associated with the  
job. With this information you should be able to modify the notify or  
FaxNotify script to do what you need.


Bodo


____________________ HylaFAX(tm) Users Mailing List _______________________
  To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi
 On UNIX: mail -s unsubscribe [email protected] < /dev/null
  *To learn about commercial HylaFAX(tm) support, mail [email protected].*
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.