"Fossies" - the Fresh Open Source Software Archive

Member "mussh/test/10_basic_connect.sh" (30 Jul 2009, 468 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: basic connection
    6 # $Id: 10_basic_connect.sh,v 1.2 2005-09-12 22:22:15 doughnut Exp $
    7 ######################################################################
    8 "
    9 CMD='mussh -h localhost -c "date"'
   10 
   11 echo "COMMAND: $CMD"
   12 $CMD
   13 
   14 RETVAL=$?
   15 if [ "$RETVAL" -eq 0 ] ; then
   16     echo "PASSED"
   17 else
   18     echo "FAILED (returned $RETVAL)"
   19     echo "Hit any key to continue"
   20     read
   21 fi
   22 exit $RETVAL