Is there a tool that can accept a command and run it over and over until exit status is 0?
I could probably check for value of $? in a loop but I wonder if there's a standard program for this
Is there a tool that can accept a command and run it over and over until exit status is 0?
I could probably check for value of $? in a loop but I wonder if there's a standard program for this
No, I think the loop is so trivial it hasn't been encoded into a command. Something like
while !cmd; do sleep 1; done