*nix command to repeatedly run a command until it "succeeds"