• 0 Posts
  • 26 Comments
Joined 2 years ago
cake
Cake day: June 23rd, 2024

help-circle













  • Flipper@feddit.orgtoLinux@programming.dev*Permanently Deleted*
    link
    fedilink
    arrow-up
    4
    arrow-down
    1
    ·
    4 months 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.