S6-FTRIG-WAIT(8)

NAME
s6-ftrig-wait - subscribe to a fifodir and wait for a pattern of events to occur on this fifodir

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

DESCRIPTION
s6-ftrig-wait subscribes to fifodir.

It waits for the series of events received on fifodir to match regexp. regexp must be an Extended Regular Expression[1].

When the series of read events matches regexp, s6-ftrig-wait prints the last event it received to stdout (one byte followed by a newline), then exits 0.

OPTIONS

-t timeout
    If the events on fifodir have not matched regexp after timeout milliseconds, print an error message on stderr and exit 1. By default, s6-ftrig-wait waits indefinitely for a matching series of events.

SEE ALSO
s6-cleanfifodir(8), s6-ftrig-listen(8), s6-ftrig-listen1(8), s6-ftrig-notify(8), s6-ftrigrd(8), s6-mkfifodir(8)

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

This man page is ported from the authoritative documentation at: https://skarnet.org/software/s6/s6-ftrig-wait.html

AUTHORS
Laurent Bercot Alexis <flexibeast@gmail.com> (man page port)