SEEKABLEPIPE(1)

πŸ“¦ version 2.3.1.2, in nixpkgs unstable

πŸ’… SEEKABLEPIPE(1) β€” like, the general commands manual, bestie

okay so picture this: you're in the General Commands Manual section (section 1, iykyk) and you've got a seekablepipe moment. let me tell you everything 🫢


✨ NAME ✨

seekablepipe β€” turn the reading end of a pipe into a seekable file descriptor, using a temporary file. literally that's the whole vibe. 🌈


πŸŽ€ SYNOPSIS πŸŽ€

writer | seekablepipe tmpfile reader [args...]

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the tea, bestie: seekablepipe takes writer's output and writes it to tmpfile, which gets unlinked as soon as it is created (the way that it just ✨vanishes✨ from the directory listing but the fd is still vibing, iconic). then it does an exec(3) into reader, reading from a file descriptor on tmpfile.

so like, your reader thinks it's reading a normal file it can seek around in, but lowkey it's a pipe's output. main character energy fr fr. πŸ’…


πŸ‘‘ EXIT STATUS πŸ‘‘

  • 111 β€” temporary error. like, a "try again later" moment 😭
  • 100 β€” permanent error, such as a misuse. that one's a you problem, ngl πŸ’€
  • 127 β€” unable to execute program β€” not found. it's giving "who? never heard of her" πŸ™ˆ
  • 126 β€” unable to execute program β€” other reason. the program exists but it's not cooperating πŸ“

🌸 SEE ALSO 🌸

a whole friend group of s6 besties, all of them section 1, all of them slaying:

this man page is ported from the authoritative documentation at: https://skarnet.org/software/s6-portable-utils/seekablepipe.html β€” go give the source some love πŸ’–

🧚 AUTHORS 🧚

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

okay that's the whole page, no cap. πŸ’œ this Debian-flavored edition of SEEKABLEPIPE(1) is dated January 15, 2023, and honestly? a classic. periodt. β­πŸŽ€

πŸ“¦ where this page comes from