FAXWATCH(8C)
π FAXWATCH π (section 8C of the manual, bestie)
okay so welcome to the faxwatch page, and yes it's a section 8C joint, we love a legacy sysadmin moment π
β¨ NAME β¨
faxwatch β monitor low-level HylaFAX server actions π
π SYNOPSIS π
/usr/bin/faxwatch [ -g ] [ -l ] [ -h host ] trigger-expression
πΈ DESCRIPTION πΈ
so basically faxwatch signs you up for one or more events on a HylaFAX server, and then it just keeps printing the event messages that come after to standard output. it's giving surveillance but make it polite. the main character purpose here? testing the event distribution mechanism that the HylaFAX servers use. no cap, that's the job. π«Ά
the trigger-expression gets handed over as an argument to a SITE TRIGGER command that's passed to hfaxd(8C). the syntax for that expression is:
[<class>['<'id'>'][<mask>|'*']]*
where <class> says which class of events you're talking about, and it's one of these:
Jβ for job-related events πΌSβ for fax send-related events π€Rβ for fax receive-related events π₯Mβ for modem-related events π‘
a <mask> is a 4-hex-digit mask of trigger events (peep the table further down β¬οΈ). and if you write * then literally every event in that class matches. all of them. the whole vibe.
an <id> is how you narrow the matches down to one specific job or modem. (eventually this is gonna need to be generalized for job groups β noted, not my problem today π)
so for example, a spec that would catch any event for the modem on ttyf2 would be M<ttyf2>*. and to get pinged when job 1932 is requeued or completes, you'd use J<1932>4c60. iconic.
the output from faxwatch is ASCII text that describes each event. faxwatch runs until you interrupt it. it will simply keep going. it has no quit in it bestie π
β¨ OPTIONS β¨
-gβ display times and dates in Greenwich Mean Time (GMT). NB: this is the default. so yeah, you're already here π°οΈ-h hostβ report the status of the server on a specific host. the host can be either a symbolic name or a network address. IPv6 addresses are given in[xx:xx::x]:portformat. if you don't pass a-hoption,faxwatchuses theFAXSERVERenvironment variable to figure out which HylaFAX server to contact. if that variable isn't set, thenfaxwatchchecks for a setting in the configuration files (first in the per-user file and then in the system-wide file). and if all of the above fails, thenfaxwatchjust tries to contact a server on the machine where it's being run. persistence!! π-lβ display times and dates in the local timezone of the server π-vβ trace the protocol exchanges betweenfaxwatchand thehfaxdprocesses on standard output. for when you want to see the receipts π
π EVENTS π
here's the current set of events you can monitor. heads up though: this info is subject to change β consult the source code for reference, fr fr.
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 finishedSEND_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 doneRECV_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 finishedMODEM_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
ΒΉ that one, JOB_ALTERED, is event to be removed soon. don't get attached π
π¦ SEE ALSO π¦
hylafax-server(5F), hfaxd(8C).
and that's the whole page bestie!! this one was dated January 18, 1996, and it's the FAXWATCH(8C) page from the HylaFAX world β old enough to be vintage, still out here monitoring low-level server actions like a queen π thanks for reading, mwah πβ¨
π¦ where this page comes from
- fedora 43: hylafax+-client 7.0.11-4.fc43 Β· libtiff AND LicenseRef-Callaway-BSD-with-advertising
- fedora 43: hylafax+-client 7.0.11-4.fc43 Β· libtiff AND LicenseRef-Callaway-BSD-with-advertising
- fedora 44: hylafax+-client 7.0.11-5.fc44 Β· libtiff AND LicenseRef-Callaway-BSD-with-advertising
- fedora 44: hylafax+-client 7.0.11-5.fc44 Β· libtiff AND LicenseRef-Callaway-BSD-with-advertising
- 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