http://www.cse.nd.edu/~ccl/software/ftsh/
The Fault-Tolerant Shell (ftsh) is a small language for system integration that makes failures a first class concept. Ftsh aims to combine the ease of scripting with very precise error semantics. It is especially useful in building distributed systems, where failures are common, making timeouts, retry, and alternation necessary techniques. For example:
try for 30 minutes
cd /tmp
rm -f data
forany host in xxx yyy zzz
wget http://${host}/fresh.data data
end
end
If any element of the script fails, all running process trees are reliably cleaned up, and the block is tried again with an exponential backoff.
---------
meg egy shell ugyeskedes:
parallel - build and execute shell command lines from standard input in parallel
GNU parallel is a shell tool for executing jobs in parallel locally or using remote computers. A job is typically a single command or a small script that has to be run for each of the lines in the input. The typical input is a list of files, a list of hosts, a list of users, a list of URLs, or a list of tables.
http://www.gnu.org/software/parallel/man.html#name