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

Diff for /pegasus/vxworks/scripts/Attic/vxexec between version 1.1 and 1.1.2.2

version 1.1, 2007/09/13 16:45:46 version 1.1.2.2, 2007/09/13 17:01:26
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
       shift
   fi
   
   if [ ! -d "$PEGASUS_ROOT" ]
   then
       echo "PEGASUS_ROOT must refer to an actual directory"
       exit 1
   fi
   
   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
   
   VXWORKS=$PEGASUS_ROOT/vxworks/image/vxWorks
   
   #vxsim -tmpdir /tmp -f $VXWORKS -exitOnError -s vxexec.tmp
   vxsim -tmpdir /tmp -f $VXWORKS -s vxexec.tmp
   
   rm -f vxexec.tmp


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

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2