Return to vxexec CVS log | Up to [Pegasus] / pegasus / vxworks |
File: [Pegasus] / pegasus / vxworks / Attic / vxexec
(download)
Revision: 1.1.2.4, Wed Sep 12 00:20:03 2007 UTC (16 years, 8 months ago) by mike Branch: TASK-PEP305_VXWORKS-branch Changes since 1.1.2.3: +8 -2 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 "## ##" >> 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 echo "" echo "## ##" echo "## ##" echo "## ##" echo "################################################################################" rm -f vxexec.tmp
No CVS admin address has been configured |
Powered by ViewCVS 0.9.2 |