this post was submitted on 18 Oct 2025
451 points (97.9% liked)

Linux

9979 readers
225 users here now

A community for everything relating to the GNU/Linux operating system (except the memes!)

Also, check out:

Original icon base courtesy of lewing@isc.tamu.edu and The GIMP

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] Flipper@feddit.org 3 points 2 weeks ago

Curl has a limited buffer and bash reads a line and then executes it, before reading the next line.

So first you need a command that takes time if executed. So a delay, downloading a big file, user input work. Next you fill up the buffer. Just your normal script. Maybe some comments etc.

Now the server can detect if after the first kB the stream stops.