I have a program which produces useful information on stdout but also reads from stdin. I want to redirect its standard output to a file without providing anything on standard input. So far, so goo. To kill the outer loop I usually add a sleep command and press CTRL-C some more times: while :; do LONGTIME_COMMAND; sleep 1; done. Please notice: the colon behind while is interpreded as. Aug 6, 2025 · After a recent update, kate seems to fork a copy of itself, presumably with some parameter which prevents an endless recursion, and then exits. Presumably this was intended to.

Recommended for you #iklannative

Jun 24, 2018 · Stop endless loop .sh script Ask Question Asked 7 years, 5 months ago Modified 7 years, 5 months ago Apr 9, 2021 · Also, in while [ true ], the test checks if true is a non-empty string. It obviously is, so this does work in giving an endless loop. But [ false ] would also be always true, so a test like that is. Jul 13, 2022 · sleep 60 is never triggering in the false case, as you combine all actions with && so it runs in an endless loop.

You may also like #iklannative

#iklanbanner200x300