bash exception

Thomas Moritz <[email protected]>
Newsgroups gmane.linux.suse.programming
Organization -
Message-ID <[email protected]>
Hallo zusammen,
ich moechte eine Exception in einem bash-Script abfangen und stehe 
gerade auf dem Schlauch.
Mit "curl" sende ich eine Nachricht (wenn es Input gibt) an ein 
anderes System. Solange das System erreichbar ist, ist die Welt in 
Ordnung. Ist das System nicht erreichbar, steigt das Script aus mit 

"curl: (7) couldn't connect to host"

Jegliche while-loops oder trap * brachten bisher keinen Erfolg.
Ich moechte erreichen, dass das Script nicht stirbt, sondern 
nach "sleep 5" beim naechsten Input wieder versucht die aktuelle 
Nachricht zu senden.
Ist das per bash ueberhaupt moeglich?

MfG Th. Moritz
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.