Show HN: Loop, run a command in loop and nothing else This is a small utility to loop a command, in a shell. This is deceptively simple, you can loop a command forever, or loop until it is succeeded or failed. Currently, it really does nothing else than a bash `for` and `sleep`, but I intend to add the possibility of running a command in loop, in parallel. In conjonction with some tests/stress tools (like https://hurl.dev who I am one of the maintainer), I think this can be useful to other... $ loop --iter 4 --delay 1000 date Tue Aug 9 06:59:58 CEST 2022 Tue Aug 9 06:59:59 CEST 2022 Tue Aug 9 07:00:00 CEST 2022 Tue Aug 9 07:00:01 CEST 2022 https://ift.tt/B0iCusp August 8, 2022 at 10:26PM
Comments
Post a Comment