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

 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 mike  1.1.2.5 rm -rf vxexec.tmp
38               echo "################################################################################" >> vxexec.tmp
39 mike  1.1.2.3 echo "$*" >> vxexec.tmp
40 mike  1.1.2.1 echo "C reboot(1)" >> vxexec.tmp
41               
42 mike  1.1.2.5 #vxsim -tmpdir /tmp -f $PEGASUS_ROOT/vxworks/vxWorks -exitOnError -s vxexec.tmp
43               vxsim -tmpdir /tmp -f $PEGASUS_ROOT/vxworks/vxWorks -s vxexec.tmp
44 mike  1.1.2.3 
45 mike  1.1.2.2 rm -f vxexec.tmp

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2