scy,
@scy@chaos.social avatar

Unix wishlist: A flag for tee(1) that will have it read from stdin and write into its output file(s) as fast as possible.

Currently, it will only read from stdin as fast as its own stdout can process the data, even if stdin could supply it faster.

Instead, if it wrote to the file(s) as fast as possible and serve stdout from these files, stdin could be depleted and closed faster, which is (e.g.) nice to the web server if stdin is curl or something.

mforester,
@mforester@rollenspiel.social avatar

@scy how about 'sponge' or 'stdbuf'? Sponge might be an issue with very large inputs though and I haven't used stdbuf myself yet.

scy,
@scy@chaos.social avatar

(Also, TIL: tee supports multiple output files and will write the same input to all of them.)

  • All
  • Subscribed
  • Moderated
  • Favorites
  • linux
  • kavyap
  • thenastyranch
  • Durango
  • DreamBathrooms
  • ngwrru68w68
  • magazineikmin
  • cubers
  • Youngstown
  • mdbf
  • slotface
  • osvaldo12
  • GTA5RPClips
  • rosin
  • InstantRegret
  • provamag3
  • everett
  • tacticalgear
  • vwfavf
  • tester
  • normalnudes
  • modclub
  • ethstaker
  • khanakhh
  • cisconetworking
  • anitta
  • Leos
  • megavids
  • JUstTest
  • All magazines