"Fossies" - the Fresh Open Source Software Archive

Member "mussh/test/11_hostfile.sh" (25 Oct 2011, 487 Bytes) of package /linux/privat/old/mussh-1.0.tgz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 #!/bin/bash
    2 
    3 echo "
    4 ######################################################################
    5 # TEST: hostfile
    6 # $Id: 11_hostfile.sh,v 1.2 2005-09-12 22:22:15 doughnut Exp $
    7 ######################################################################
    8 "
    9 
   10 CMD="mussh -U -t 10 -d -H $(dirname $0)/testhosts.list -c 'date'"
   11 
   12 echo "COMMAND: $CMD"
   13 $CMD
   14 
   15 RETVAL=$?
   16 if [ "$RETVAL" -eq 0 ] ; then
   17     echo "PASSED"
   18 else
   19     echo "FAILED (returned $RETVAL)"
   20     echo "Hit any key to continue"
   21     read
   22 fi
   23 exit $RETVAL