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

File: [Pegasus] / pegasus / vxworks / Attic / vxexec (download)
Revision: 1.1.2.2, Tue Sep 11 23:48:09 2007 UTC (16 years, 9 months ago) by mike
Branch: TASK-PEP305_VXWORKS-branch
Changes since 1.1.2.1: +3 -1 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
    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

echo "$*" > vxexec.tmp
echo "C reboot(1)" >> vxexec.tmp

vxsim -tmpdir /tmp -f $PEGASUS_ROOT/vxworks/vxWorks -exitOnError -s vxexec.tmp

rm -f vxexec.tmp

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2