Usually !! repeats the last given command. But it doesn’t seem to work in a bash script. Is there a way to end a script and repeat it with the exact same options and arguments given the last time?
Additional info: In a part of my script it is checked if a server is running. If it isn't, it is started by etherwake. This is the part, where I want the script to be ended and restarted, until the server is finally up. Ignoring the problem that this easily can lead to a endless loop which might threaten system/network stability.
Is there an easier/safer way? There doesn't seem to be a GOTO LINE command or something similar.