# The problem:
#
#   Classes of UNIX servers, which have to be administrated equally:
#   one has to distribute the same commands and/or files on every server.
#
# Addon problem:
#
#   Not all servers are currently up and running (because of maintenance mode,
#   link failure, etc). Nevertheless it has to be assured that all commands and
#   files will finally reach every server, automatically.
#
# The solution:

usage: spread [-l] [-L] [-v] [-r] [-E]
options: -v            verbose mode
         -l            list jobs in spool
         -L            list host classes
         -r            retry jobs in spool
         -E            edit config file
         
usage: cspread [-v] [-c class] [-h host1,host2,...] [-x hosta,hostb,...] jobname 'command...'
usage: cspread [-v] [-c class] [-h host1,host2,...] [-x hosta,hostb,...] jobfile
options: -v            verbose mode
         -c class      name of server class (default: all)
         -h host1,...  use these hosts instead of class
         -x hosta,...  exclude these hosts
example: cspread test "uname -a; uptime"

usage: fspread [-v] [-c class] [-h host1,host2,...] [-x hosta,hostb,...] [-d dir] [-p] [-e] jobname file...
options: -v            verbose mode
         -c class      name of server class (default: all)
         -h host1,...  use these hosts instead of class
         -x hosta,...  exclude these hosts
         -d dir        destination directory (must be absolute path)
         -p            prolog script (BEFORE file installation)
         -e            epilog script (AFTER file installation)
example: fspread -c mailrelay profile /etc/profile*

Author: Ulli Horlacher