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

File: [Pegasus] / pegasus / vxworks / Attic / vxexec (download)
Revision: 1.1.2.7, Wed Sep 12 13:32:24 2007 UTC (16 years, 9 months ago) by mike
Branch: TASK-PEP305_VXWORKS-branch
Changes since 1.1.2.6: +2 -5 lines
PEP#: 305
TITLE: VxWorks Porting
DESCRIPTION: Ongoing VxWorks porting

#!/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

#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

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2