FAXWATCH(8)
π FAXWATCH(8) β System Manager's Manual π
okay bestie, welcome to faxwatch(8), aka the little snitch that watches your HylaFAX server do its thing. System manager vibes only. β¨
πΈ NAME πΈ
faxwatch β monitor low-level HylaFAX server actions
Like, it's literally in the name. It watches. It faxes. It's that girl. π
π¦ SYNOPSIS π¦
/usr/sbin/faxwatch [ -g ] [ -l ] [ -h host ] trigger-expression
β¨ DESCRIPTION β¨
So here's the tea π΅: faxwatch signs you up for one or more events on a HylaFAX server, and then it just prints every subsequent event message straight to standard output. That's the whole job. No cap.
Real talk though: faxwatch is intended mainly for testing the event distribution mechanism used by the HylaFAX servers. So like, it's a dev tool, not a production bestie. iykyk.
The trigger-expression gets handed over as an argument to a SITE TRIGGER command passed to the hfaxd(8). The syntax for this expression is:
[<class>['<'id'>'][<mask>|'*']]*
where <class> defines a class of events, and it's one of these four icons π :
Jβ for job-related events,Sβ for fax send-related events,Rβ for fax receive-related events, andMβ for modem-related events.
A <mask> is a 4-hex-digit mask of trigger events (the table's down below, don't worry π). And if you write *, then all the events in that class get matched. slay.
An <id> can be used to restrict matches to a specific job or modem. Eventually this will need to be generalized for job groups β that's the original note, not me being shady, fr fr.
So, for example, a specification that would catch any event for the modem on ttyf2 would be:
M<ttyf2>*
and to be notified when job 1932 is requeued or completes, one would use:
J<1932>4c60
The output from faxwatch is ASCII text that describes each event. And faxwatch runs until it is interrupted. It does not stop. It does not sleep. It is committed. π
π OPTIONS π
-gβ Display times and dates in Greenwich Mean Time (GMT). NB: this is the default. so yeah, it's giving "I was already doing this" π-hhost β Report the status of the server on a specific host. The host may be either a symbolic name or a network address. If no-hoption is supplied,faxwatchuses theFAXSERVERenvironment variable to identify the HylaFAX server to contact. If this variable is not set, thenfaxwatchchecks for a setting in the configuration files (first in the per-user file and then in the system-wide file). If all of the above fails, thenfaxwatchattempts to contact a server on the machine where it is run. it's giving "I'll find it myself, bestie" π-lβ Display times and dates in the local timezone of the server.-vβ Trace the protocol exchanges betweenfaxwatchand thehfaxdprocesses on the standard output. messy, chatty, iconic. π£οΈ
π EVENTS π
The following table specifies the current set of events that may be monitored. This information is subject to change; consult the source code for reference. (translation: don't come for me if it moves, it moves π)
π Job events β class J
JOB_CREATEβ classJ, mask0x0001β job createdJOB_SUSPENDβ classJ, mask0x0002β job suspendedJOB_READYβ classJ, mask0x0004β job ready to sendJOB_SLEEPβ classJ, mask0x0008β job sleeping awaiting time-to-sendJOB_DEADβ classJ, mask0x0010β job marked deadJOB_PROCESSβ classJ, mask0x0020β job processed by schedulerJOB_REAPβ classJ, mask0x0040β job corpus reapedJOB_ACTIVEβ classJ, mask0x0080β job activatedJOB_REJECTβ classJ, mask0x0100β job rejectedJOB_KILLβ classJ, mask0x0200β job killedJOB_BLOCKEDβ classJ, mask0x0400β job blocked by other jobJOB_DELAYEDβ classJ, mask0x0800β job delayed by tod restriction or similarJOB_ALTEREDΒΉ β classJ, mask0x1000β job parameters alteredJOB_TIMEDOUTβ classJ, mask0x2000β job kill timer expiredJOB_PREP_BEGINβ classJ, mask0x4000β job preparation startedJOB_PREP_ENDβ classJ, mask0x8000β job preparation finished
π¦ Send events β class S
SEND_BEGINβ classS, mask0x0001β fax, send attempt startedSEND_CALLβ classS, mask0x0002β fax, call placedSEND_CONNECTEDβ classS, mask0x0004β fax, call answered by faxSEND_PAGEβ classS, mask0x0008β fax, page transmit doneSEND_DOCβ classS, mask0x0010β fax, document transmit doneSEND_POLLRCVDβ classS, mask0x0020β fax, document retrieved by poll operationSEND_POLLDONEβ classS, mask0x0040β fax, poll operation completedSEND_ENDβ classS, mask0x0080β fax, send attempt finishedSEND_REFORMATβ classS, mask0x0100β fax, job being reformattedSEND_REQUEUEβ classS, mask0x0200β fax, job requeuedSEND_DONEβ classS, mask0x0400β fax, send job done
π Receive events β class R
RECV_BEGINβ classR, mask0x0001β fax, inbound call startedRECV_STARTβ classR, mask0x0002β fax, session startedRECV_PAGEβ classR, mask0x0004β fax, page receive doneRECV_DOCβ classR, mask0x0008β fax, document receive doneRECV_ENDβ classR, mask0x0010β fax, inbound call finished
π Modem events β class M
MODEM_ASSIGNβ classM, mask0x0001β modem assigned to jobMODEM_RELEASEβ classM, mask0x0002β modem released by jobMODEM_DOWNβ classM, mask0x0004β modem marked downMODEM_READYβ classM, mask0x0008β modem marked readyMODEM_BUSYβ classM, mask0x0010β modem marked busyMODEM_WEDGEDβ classM, mask0x0020β modem considered wedgedMODEM_INUSEβ classM, mask0x0040β modem in use for outbound workMODEM_DATA_BEGINβ classM, mask0x0080β inbound data call begunMODEM_DATA_ENDβ classM, mask0x0100β inbound data call finishedMODEM_VOICE_BEGINβ classM, mask0x0200β inbound voice call begunMODEM_VOICE_ENDβ classM, mask0x0400β inbound voice call finishedMODEM_CIDβ classM, mask0x0800β inbound caller-ID information
ΒΉ Event to be removed soon. πͺ¦ don't get attached, bestie.
π₯ SEE ALSO π₯
and that's the whole page, periodt π β¨
signed off from the System Manager's Manual, dated January 18, 1996 β yeah, she's vintage, she's iconic, she's still watching your faxes. FAXWATCH(8), out. π«Άπ
π¦ where this page comes from
- debian bookworm: hylafax-server 3:6.0.7-5
- debian trixie: hylafax-server 3:6.0.7-11.1
- ubuntu jammy: hylafax-server 3:6.0.7-3.1
- ubuntu noble: hylafax-server 3:6.0.7-7
- ubuntu questing: hylafax-server 3:6.0.7-13
- ubuntu resolute: hylafax-server 3:6.0.7-13build1
- ubuntu stonking: hylafax-server 3:6.0.7-13build1
- Copyright (c) 1995-1996 Sam Leffler
- Copyright (c) 1995-1996 Silicon Graphics, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms