News for hackers. Stuff that matters.
Re:Hacker News Hug of Deaf by smallpipe on Thursday April 10, 2025 @08:38AM (#43643191)
Fun. You can tell it's receiving some love right now

    while true; do; sleep 5; curl http://susam.net:8000 ; done
    curl: (1) Received HTTP/0.9 when not allowed
    curl: (1) Received HTTP/0.9 when not allowed
    curl: (7) Failed to connect to susam.net port 8000 after 11 ms: Couldn't connect to server
    curl: (56) Recv failure: Connection reset by peer
    curl: (7) Failed to connect to susam.net port 8000 after 8 ms: Couldn't connect to server
    curl: (1) Received HTTP/0.9 when not allowed
    curl: (7) Failed to connect to susam.net port 8000 after 8 ms: Couldn't connect to server
    curl: (1) Received HTTP/0.9 when not allowed
    curl: (7) Failed to connect to susam.net port 8000 after 10 ms: Couldn't connect to server
    curl: (7) Failed to connect to susam.net port 8000 after 11 ms: Couldn't connect to server
    curl: (56) Recv failure: Connection reset by peer
    curl: (56) Recv failure: Connection reset by peer
    curl: (1) Received HTTP/0.9 when not allowed
Re:Hacker News Hug of Deaf by zoky on Thursday April 10, 2025 @08:51AM (#43643268)
Well you're really helping the sitch here, ain'tcha…
Re:Hacker News Hug of Deaf by drittich on Thursday April 10, 2025 @11:09AM (#43644618)
It's like when you are in a traffic jam. It's the other drivers fault, not you!
Re:Hacker News Hug of Deaf by choult on Thursday April 10, 2025 @09:18AM (#43643487)
FYI, next time try `watch -n 5 <cmd>`
Re:Hacker News Hug of Deaf by MisterTea on Thursday April 10, 2025 @09:20AM (#43643514)
What benefit does running another program offer when the program running the command (shell) already provides that functionality?
Re:Hacker News Hug of Deaf by RunningDroid on Thursday April 10, 2025 @09:27AM (#43643568)
Watch also clears the terminal between runs
Re:Hacker News Hug of Deaf by inanutshellus on Thursday April 10, 2025 @09:34AM (#43643615)
I guess that'd be a detractor, as he wouldn't've been able to make his post showing his results over time.

I'd've said the benefit is that it's simply a concise single command instead of a "while true" loop and a "sleep 5" command.

Re:Hacker News Hug of Deaf by fc417fc802 on Thursday April 10, 2025 @01:04PM (#43645932)
That logic seems to apply to quite a few basic utilities. For that matter, the shell is turing complete so ...
Re:Hacker News Hug of Deaf by alexjm on Thursday April 10, 2025 @05:28PM (#43648184)
You might want to add the --http0.9 flag to curl, to tell it that getting a response of just "ok" (HTTP 0.9 style, body only without headers) isn't an error.