Re: how to see what hylafax is doing.. live
Antonio Lapira <[email protected]>
| Newsgroups | gmane.comp.telephony.fax.hylafax.user |
|---|---|
| Message-ID | <[email protected]> |
>The sendfax program submits a job to the HylaFAX server and will exit
when it has done this. It will not wait until the server starts or
finishes processing the job.
unless I use -w (wait) option of sendfax
The server will probably send your fax immediately if this is
possible, but it may also have to wait for an unknown time until the
necessary resources are ready.
>If HylaFAX has a full queue of jobs it
may process your current job hours after submissionI use wait option, so no queue
> efax live log example:
[...]
This log looks similar to what HylaFAX writes to syslog.
I think it is very difficult to reproduce the behavior of efax with
HylaFAX. I suggest you should think about your requirements.
What information (from an abstract point of view) do you need in a logfile? minimum is: called number, status (line of q.. file in /var/spool/doneq), state (line of q.. file in /var/spool/doneq) and the content of c..... file in /var/spool/log/
What do you want to do with the logfile?
I need an archive of logsat the moment, with efax, I have for example a directory of today's sent log faxin this directory I have for example 100 fileseach file is called #number-of-telephone/faxin each file I have efax log of that fax, so it'easy to search information
with hylafax, it's very trickyfirst 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...
HylaFAX calls a notify script when it has processed (or tried to
process) a job. This script is designed to be customized by calling
etc/FaxNotify when present. You can create or modify etc/FaxNotify to
collect information from various places and create files as needed.
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?
Il Lunedì 2 Novembre 2015 19:37, Bodo Meissner <[email protected]> ha scritto:
Zitat von Antonio Lapira <[email protected]>:
> for example with efax, when I give the command to send fax, I get
> this output (so I can make my log file, for example number.log)
> while using sendfax (hylafax client) I don't get the log as this
[...]
I don't know efax, so I cannot compare it with HylaFAX.
I guss you will not find a drop-in replacement.
The sendfax program submits a job to the HylaFAX server and will exit
when it has done this. It can only tell you if it has successfully
submitted the job or not. It will not wait until the server starts or
finishes processing the job.
The server will probably send your fax immediately if this is
possible, but it may also have to wait for an unknown time until the
necessary resources are ready. If HylaFAX has a full queue of jobs it
may process your current job hours after submission and if something
goes wrong it will wait some time before retrying the job.
> efax live log example:
[...]
This log looks similar to what HylaFAX writes to syslog.
I think it is very difficult to reproduce the behavior of efax with
HylaFAX. I suggest you should think about your requirements. What
information (from an abstract point of view) do you need in a logfile?
What do you want to do with the logfile?
Do you need this live information for your daily work or only for an
initial phase until you trust HylaFAX to do its job?
HylaFAX calls a notify script when it has processed (or tried to
process) a job. This script is designed to be customized by calling
etc/FaxNotify when present. You can create or modify etc/FaxNotify to
collect information from various places and create files as needed.
Information what HylaFAX is doing at the moment like which job/file is
being processed, which data is sent to or received from the modem is
written to syslog. You can configure your syslog to collect this
information and write it to specific destinations. (Maybe you need an
improved syslog like syslog-ng.)
If you temporarily want to see this information you can use something
like "tail -f /var/log/syslog | fgrep -i fax" (This simple will stop
working when your system rotates the log files.)
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].*