1 mike 1.1.2.1 #!/bin/bash
2
3 ##==============================================================================
4 ##
5 ## vxexec
6 ##
7 ## Usage:
8 ##
9 ## vxexec -c command
10 ##
11 ## Synopsis:
12 ##
13 ## This script executes a single command under vxsim.
14 ##
15 ## Examples:
16 ##
17 ## vxexec -c TestString.vxe
18 ##
19 ##==============================================================================
20
21 copt=$1
22 mike 1.1.2.1
23 if [ ! "$1" = "-c" ]
24 then
25 echo "Usage: $0 -c command"
26 exit 1
27 fi
28
29 if [ ! -d "$PEGASUS_ROOT" ]
30 then
31 echo "PEGASUS_ROOT must refer to an actual directory"
32 exit 1
33 fi
34
35 shift
36
37 echo "$*" > vxexec.tmp
38 echo "C reboot(1)" >> vxexec.tmp
39
40 vxsim -f $PEGASUS_ROOT/vxworks/vxWorks -exitOnError -s vxexec.tmp
|