(file) Return to vxexec CVS log (file) (dir) Up to [Pegasus] / pegasus / vxworks / Attic

Diff for /pegasus/vxworks/Attic/vxexec between version 1.1 and 1.1.2.6

version 1.1, 2007/09/12 00:26:53 version 1.1.2.6, 2007/09/12 01:37:27
Line 0 
Line 1 
   #!/bin/bash
   
   ##==============================================================================
   ##
   ## vxexec
   ##
   ## Usage:
   ##
   ##     vxexec -c command
   ##
   ## Synopsis:
   ##
   ##     This script executes a single command under vxsim.
   ##
   ## Examples:
   ##
   ##     vxexec -c TestString.vxe
   ##
   ##==============================================================================
   
   copt=$1
   
   if [ ! "$1" = "-c" ]
   then
       echo "Usage: $0 -c command"
       exit 1
   fi
   
   if [ ! -d "$PEGASUS_ROOT" ]
   then
       echo "PEGASUS_ROOT must refer to an actual directory"
       exit 1
   fi
   
   shift
   
   rm -rf vxexec.tmp
   echo "################################################################################" >> vxexec.tmp
   echo "##" >> vxexec.tmp
   echo "## $*" >> vxexec.tmp
   echo "##" >> vxexec.tmp
   echo "################################################################################" >> vxexec.tmp
   echo "$*" >> vxexec.tmp
   echo "C reboot(1)" >> vxexec.tmp
   
   #vxsim -tmpdir /tmp -f $PEGASUS_ROOT/vxworks/vxWorks -exitOnError -s vxexec.tmp
   vxsim -tmpdir /tmp -f $PEGASUS_ROOT/vxworks/vxWorks -s vxexec.tmp
   
   rm -f vxexec.tmp


Legend:
Removed from v.1.1  
changed lines
  Added in v.1.1.2.6

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2