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

Antonio Lapira <[email protected]>
Newsgroups gmane.comp.telephony.fax.hylafax.user
Message-ID <[email protected]>
at the moment, to see the log using sendfax, I'm doing this:
rm -rf /var/spool/hylafax/doneq/*rm -rf /var/spool/hylafax/recvq/*rm -rf /var/spool/hylafax/log/*rm -rf /var/spool/hylafax/sendq/*rm -rf /var/spool/hylafax/docq/*rm -rf /var/spool/hylafax/pollq/*
sendfax -w -G -B 9600 -t 1 -T 1 -n -d 06...... fax.tifsleep 1cat /var/spool/hylafax/log/c000000001cat /var/spool/hylafax/doneq/q1cat /var/spool/hylafax/log/xferfaxlog
It seems to work, logs are shown when fax is sent, but it's the worst road to do that...for example, if I connect two modem and I want to send two fax at the same time it's a problem
please help me

 


     Il Martedì 3 Novembre 2015 0:13, Bodo Meissner <[email protected]> ha scritto:
   

 Am 02.11.2015 um 23:25 schrieb Antonio Lapira:

> I need an archive of logs
> at the moment, with efax, I have for example a directory of today's sent
> log fax
> in this directory I have for example 100 files
> each file is called #number-of-telephone/fax

I think you can do this in a notify or FaxNotify script.

> with hylafax, it's very tricky
> first I have to understood which files refer to the number of fax (one
> in /var/spool/hylafax/doneq and another in /var/spool/hylafax/log
> directory ), and then I have to search in...

The qfile contains all references you need.

> I don't want to receive emails for each sent fax, I'd like to make a
> text FILE in hylafax directory (for example in /var/spool/hylafax/mylog/ )
> is it possibile with etc/FaxNotify ? where I can find examples of that file?

Google is your friend.
http://www.hylafax.org/man/current/notify.1m.html
Look at the script code.
I think you can redefine do_notify() to do what you like instead of 
sending mail. (untested)
If it is difficult with FaxNotify you can even modify the notify script, 
but in this case you have to take care when updating HylaFAX. Your 
modified version may get overwritten.

The notify script parses the qfile which contains information about the 
job ID, the destination fax number and other things.
See common-functions.sh, see the contents of a qfile.


____________________ 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.