mamchenkov.net
Bash trick: Repeat last command until success
More and more often I come across a scenario where I need to repeat the shell command until it succeeds. Here are a couple of examples: Reboot a server. Try to remotely login to it via ssh. This fails until the server actually boots up. Keep trying until connected.Start an application that writes to the … Continue reading Bash trick: Repeat last command until success