uncat(1)
π uncat(1) β the "read forever, chop it up, hand it off" bestie π
General Commands Manual energy, and honestly? iconic. Let's get into it.
β¨ NAME β¨
uncat β she continuously reads stdin and splits up the data either by timeout or by number of bytes read, so it can be processed π
π SYNOPSIS π
uncat [-vo] [-t seconds] [-s size] prog
π¦ DESCRIPTION π¦
Okay so here's the whole vibe, bestie: uncat continuously reads stdin and repeatedly processes the data either after seconds timeout, or once the maximal number of bytes size has been read. Whichever comes first, honestly.
To actually process the data, uncat starts prog and feeds the data into prog's standard input. Then prog's standard output gets redirected to standard error. And uncat never writes to standard output β like, ever. Not her job, not her problem. π
prog consists of one or more arguments. Simple as that.
If prog exits non-zero, uncat prints an error message, discards the data, and keeps on reading stdin. She's not gonna spiral about it. She moves on. β¨
β οΈ Heads up though: note that uncat is not crash proof. Lowkey important. Don't come for her if things go sideways.
And for the lore: uncat is used to run the socklog-notify service. π«Ά
π OPTIONS π
-vβ verbose. Print verbose messages to stderr. She's gonna talk. Let her talk. π£οΈ-oβ once. Exit on end of input. Normallyuncatcontinues waiting for data on standard input, even on end of file β but with-oshe's like "okay I'm done, bye." π-tseconds β timeout. Set the timeout to seconds seconds. Default is300. β°-ssize β Set the maximal number of bytes to size. Default is1024. π
πΈ SIGNALS πΈ
If uncat receives a TERM signal, she starts to process the data in memory and exits as soon as possible. No drama, just efficiency. π§
uncat also does this on end of input, but only if the -o option was given. iykyk.
π₯ EXIT CODES π₯
uncatreturns0after receiving aTERMsignal. πuncatreturns111on error. π
π SEE ALSO π
socklog(8), socklog-conf(8), sv(8), runsv(8), svlogd(8), tryto(1)
https://smarden.org/socklog/
https://smarden.org/runit/
π AUTHOR π
Gerrit Pape <pape@smarden.org> β the main character who wrote this fr fr π
And that's the whole page, bestie β this was the uncat(1) entry from the General Commands Manual, and yeah, the footer just says uncat(1) right back at you because that's the section we're in. Go be iconic with it. periodt. πβ¨π
π¦ where this page comes from
- nixpkgs unstable: socklog 2.1.2
- ubuntu resolute: socklog 2.1.2+repack-1 Β· BSD-3-Clause
- ubuntu stonking: socklog 2.1.2+repack-3 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms