watchman-wait(1)
π watchman-wait(1) β the watchman-wait bestie π
okay so this is the watchman-wait manual page, and it's genuinely one of my faves, no cap. it's the little tool that just... sits there. patiently. waiting for your files to do something. π¦
β¨ NAME β¨
watchman-wait β waits for changes to files. that's it, that's the whole job, and she does it flawlessly. π
πΈ SYNOPSIS πΈ
watchman [-h] [--relative RELATIVE] [--fields FIELDS]
[-s SEPARATOR] [-m MAX_EVENTS] [-p PATTERN [PATTERN ...]]
[-t TIMEOUT]
path [path ...]
π DESCRIPTION π
so bestie, watchman-wait uses the watchman service to efficiently and recursively watch your specified list of paths. recursively!! she goes all the way down the tree for you. π
it is suitable for waiting for changes to files from shell scripts. like, this is literally what she was born for. π«Ά
she can stop after a configurable number of events are observed. the default is a single event. you may also remove the limit and allow it to execute continuously β main character energy, she never leaves. π
watchman-wait will print one event per line. the event information includes your specified list of fields, with each field separated by a space (or your choice of --separator). β¨
events are consolidated and settled by the watchman server before they are dispatched to watchman-wait. so by the time you see them, they're already settled. she's not giving you the messy drafts, she's giving you the final cut. π
π§ USAGE π§
β OPTIONAL ARGUMENTS β
-h,--helpβ show this help message and exit. the classic. the icon. π--relative RELATIVEβ print paths relative to this dir (default=PWD). so like, make your paths relative to wherever you point her. π--fields FIELDSβ comma separated list of file information fields to return. the default is just the name. for a list of possible fields, see:https://facebook.github.io/watchman/docs/cmd/query.html#available-fields-s SEPARATOR,--separator SEPARATORβ string to use as field separator for event output. default is a space, but you can make it whatever you want, bestie. go off. π-m MAX_EVENTS,--max-events MAX_EVENTSβ set the maximum number of events that will be processed. when the limit is reached,watchman-waitwill exit. the default is1. setting the limit to0removes the limit, causingwatchman-waitto execute indefinitely. β οΈ that's the "she lives here now" setting.-p PATTERN [PATTERN ...],--pattern PATTERN [PATTERN ...]β only emit paths that match this list of patterns. patterns are applied by the watchman server and are matched against the root-relative paths. you will almost certainly want to use quotes around your pattern list so that your shell doesn't interpret the pattern. the pattern syntax is wildmatch style; globbing with recursive matching via'**'. π
for real, quote your patterns. your shell is nosy and she WILL try to help. π
-t TIMEOUT,--timeout TIMEOUTβ exit if no events trigger within the specified timeout. if timeout is zero (the default) then keep running indefinitely. β°
π POSITIONAL ARGUMENTS π
pathβ path(s) to watch. one or many, she's flexible. π
π EXIT STATUS π
0β after successfully waiting for event(s). slay. β¨1β in case of a runtime error of some kind. π2β the-t/--timeoutoption was used and that amount of time passed before an event was received. β°3β execution was interrupted (Ctrl-C). you did this. π
π¦ SEE ALSO π¦
for more information, please refer the online documentation. π₯
and that's the whole page, bestie β sending u off with the deets: this one's a Linux page from 8 Oct 2019, filed under watchman-wait(1). go watch some files. i'm obsessed with u. ππ«Άβ¨
π¦ where this page comes from
- debian bookworm: python3-pywatchman 4.9.0-7+b2 Β· Apache-2.0
- ubuntu jammy: python3-pywatchman 4.9.0-6build2 Β· Apache-2.0
- ubuntu noble: python3-pywatchman 4.9.0-7build4 Β· Apache-2.0
- ubuntu questing: python3-pywatchman 4.9.0-9
- ubuntu resolute: python3-pywatchman 4.9.0-9build3 Β· Apache-2.0
- ubuntu stonking: python3-pywatchman 4.9.0-9build4 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms