S6-FTRIG-WAIT(8)

πŸ“¦ version 2.15.1.0, in nixpkgs unstable

πŸ’… s6-ftrig-wait β€” the manual page, but make it cute

okay so bestie, welcome to s6-ftrig-wait(8), from the System Manager's Manual. this one's a whole little vibe: you subscribe to an s6-fifodir(7), and then you just… wait. patiently. like a main character. πŸŽ€


✨ NAME ✨

s6-ftrig-wait β€” subscribe to an s6-fifodir(7) and wait for a pattern of events to occur on this fifodir. that's it. that's the job. she's simple, she's iconic. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

s6-ftrig-wait [-t timeout] fifodir regexp

literally just the program name, an optional -t timeout, then fifodir and regexp. no cap, that's the whole invocation. 🫢


🌸 DESCRIPTION 🌸

so s6-ftrig-wait subscribes to fifodir. she's in the group chat now. πŸ‘‘

then she waits for the series of events received on fifodir to match regexp. and regexp must be an Extended Regular Expression[1] β€” that's the rule, no exceptions, iykyk. ⭐

and when the series of read events matches regexp? slay. at that exact moment, s6-ftrig-wait prints the last event it received to stdout (one byte followed by a newline), then exits 0. ate and left no crumbs. πŸ”₯


πŸ’– OPTIONS πŸ’–

  • -t timeout β€” if the events on fifodir have not matched regexp after timeout milliseconds, print an error message on stderr and exit 1. like, she waited, she really did. πŸ™ˆ by default, s6-ftrig-wait waits indefinitely for a matching series of events β€” she has all the time in the world, lowkey. πŸ’œ

🌈 SEE ALSO 🌈

these are all her besties, go say hi:

[1] https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/V1_chap09.html#tag_09_04

and for the record, this man page is ported from the authoritative documentation at: https://skarnet.org/software/s6/s6-ftrig-wait.html β€” go read the source, bestie, it's giving ✨references✨

πŸ‘‘ AUTHORS πŸ‘‘

  • Laurent Bercot
  • Alexis <flexibeast@gmail.com> β€” (man page port)

okay that's the whole page, ily, go match some regexps πŸ§šπŸ’–

this cutie was shipped by Debian, dated September 29, 2021, under the name S6-FTRIG-WAIT(8) β€” periodt. πŸ“
πŸ“¦ where this page comes from