(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 mike  1.1.2.7 if [ "$1" = "-c" ]
24 mike  1.1.2.1 then
25 mike  1.1.2.7     shift
26 mike  1.1.2.1 fi
27               
28               if [ ! -d "$PEGASUS_ROOT" ]
29               then
30                   echo "PEGASUS_ROOT must refer to an actual directory"
31                   exit 1
32               fi
33               
34 mike  1.1.2.5 rm -rf vxexec.tmp
35               echo "################################################################################" >> vxexec.tmp
36 mike  1.1.2.6 echo "##" >> vxexec.tmp
37               echo "## $*" >> vxexec.tmp
38               echo "##" >> vxexec.tmp
39               echo "################################################################################" >> vxexec.tmp
40 mike  1.1.2.3 echo "$*" >> vxexec.tmp
41 mike  1.1.2.1 echo "C reboot(1)" >> vxexec.tmp
42               
43 mike  1.1.2.5 #vxsim -tmpdir /tmp -f $PEGASUS_ROOT/vxworks/vxWorks -exitOnError -s vxexec.tmp
44               vxsim -tmpdir /tmp -f $PEGASUS_ROOT/vxworks/vxWorks -s vxexec.tmp
45 mike  1.1.2.3 
46 mike  1.1.2.2 rm -f vxexec.tmp

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2