BASH has no do while
looping, so you have to do something fugly to write a one-liner that will run a command until it finishes successfully (run it first, then loop):
mirrormusic; until [ $? -eq 0 ]; do mirrormusic; done;
This is required when I’m rsyncing because my POS Linksys cable modem intermittently causes SSH to die with a ‘Corrupted MAC on input.’ error.