FAXINFO(8)

πŸ“¦
version 6.0.7 Β· 2 versions
  • 6.0.7 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 6.0.7 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– FAXINFO(8) β€” the faxinfo girlies' guide πŸ’–

System Manager's Manual Β· FAXINFO(8)

okay bestie, pull up a chair because we're about to talk about faxinfo β€” she's the one who spills all the tea about a received facsimile 🌸


✨ NAME ✨

faxinfo β€” print information about a received facsimile πŸ¦‹


πŸŽ€ SYNOPSIS πŸŽ€

Basic usage:

/usr/sbin/faxinfo [ -b ] [ -n ] [ -D ] file.tif [ file2.tif [...] ]

Formatting shortcuts:

/usr/sbin/faxinfo [ -C delim | -c delim | -r ] file.tif [ file2.tif ] ]

Raw formatting:

/usr/sbin/faxinfo [ -S fmt ] [ -s fmt ] [ -e fmt ] [ -E fmt ] file.tif [ file2.tif ] ]

πŸ’… DESCRIPTION πŸ’…

So basically, faxinfo prints descriptive information on the standard output about a received facsimile file. Like, it's giving receipts. For example:

/var/spool/hylafax/recvq/fax00017.tif:
    Sender: +14159657824
     Pages: 3
   Quality: Normal
      Page: North American Letter
  Received: 1996:01:19 13:51:02
TimeToRecv: 0:39
SignalRate: 14400 bit/s
DataFormat: 2-D MR
ErrCorrect: No
   CallID1: 2152345678
   CallID2: 1234

This info is typically included in the notification mail generated by the faxrcvd(8) script when a facsimile is received by HylaFAX. no cap, that's just how she moves πŸ“¬

🌈 The options, one by one 🌈

  • -n β€” suppresses the printing of the filename. shy queen behavior πŸ™ˆ
  • -b β€” strips any leading directory of the filename before printing πŸ‘‘
  • -D β€” prints the actual print strings being used for debug purposes. detective mode fr fr πŸ”

πŸ“ Formatting shortcuts πŸ“

  • -C delim β€” Sets the format to a quoted CSV, shortcut to
-S '"%s"' -s ',"' -e '"' -E '\n'
  • -c delim β€” Sets the format to a CSV, shortcut to:
-S '%s' -s ',' -e '' -E '\n'
  • -r β€” Sets the format to raw values, shortcut to:
-S '' -s '' -e '0 -E ''

🧚 Raw formatting 🧚

  • -S fmt β€” used to start each fax, it is passed one parameter, the fax file name
  • -s fmt β€” used to start each field, it is passed one parameter, the field name
  • -e fmt β€” used to end each field, it is passed one parameter, the field name
  • -E fmt β€” used to end each fax, it is passed one parameter, the fax file name

🌸 NOTES 🌸

The information that faxinfo prints is obtained from the tags stored in the TIFF image that is written by the HylaFAX software. so she's literally just reading the vibes off the file, okay? 😭

If faxinfo is presented with an invalid TIFF image it may print uninteresting information. Similarly, if a TIFF image that was not written by HylaFAX is supplied as an argument, then only partial information may be printed β€” this is because HylaFAX stores certain information in private tags that other TIFF writers may not emit. iykyk πŸ’€

Use of the raw fmt options allows you to directly control the print format strings used when formatting the output. These format strings are passed directly to printf, with basic <char> sequences being interpreted, including \n, \r, and \t, and can be used to make the faxinfo output conform to specific requirements, like peculiar CVS, tables, HTML, etc. she's flexible, she's versatile, she contains multitudes ✨

⚠️ The order of the options is important. They are parsed from first to last, so any later options will override settings of previous ones. last one wins, periodt πŸ’…

πŸ’€ ERRORS πŸ’€

faxinfo returns 0 on success and 1 if the file passed as argument is not valid. that's it, that's the whole mood chart πŸ“‰


🫢 SEE ALSO 🫢

hylafax-server(5), faxrcvd(8), faxgetty(8)


mwah πŸ’‹ that's the whole page β€” written under the System Manager's Manual banner, dated November 15, 1996, and stamped FAXINFO(8) at the bottom like a little signature. go read your faxes, bestie πŸŒˆπŸ’–

πŸ“¦ where this page comes from