test/comparison/dtn-cmd-half.sh
changeset 0 2b3e5ec03512
equal deleted inserted replaced
-1:000000000000 0:2b3e5ec03512
       
     1 #!/bin/csh
       
     2 
       
     3 #
       
     4 #    Copyright 2005-2006 Intel Corporation
       
     5 # 
       
     6 #    Licensed under the Apache License, Version 2.0 (the "License");
       
     7 #    you may not use this file except in compliance with the License.
       
     8 #    You may obtain a copy of the License at
       
     9 # 
       
    10 #        http://www.apache.org/licenses/LICENSE-2.0
       
    11 # 
       
    12 #    Unless required by applicable law or agreed to in writing, software
       
    13 #    distributed under the License is distributed on an "AS IS" BASIS,
       
    14 #    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
       
    15 #    See the License for the specific language governing permissions and
       
    16 #    limitations under the License.
       
    17 #
       
    18 
       
    19 
       
    20 
       
    21 ## First See base-cmd.sh 
       
    22 ## This script is called by above.
       
    23 ## base-cmd.sh defines all the variables used in this script
       
    24 
       
    25 
       
    26 echo "Inside DTN specific setting " >> $info
       
    27 
       
    28 set mylogroot  =    $logroot/node-$id
       
    29 set myexeroot  =    $dtn2root/daemon
       
    30 set baseconfig = $dtn2testroot/base-dtn.conf
       
    31 
       
    32 
       
    33 if (! -e $mylogroot) then
       
    34       mkdir  $mylogroot
       
    35 endif
       
    36 
       
    37 # Now generate daemon for the node
       
    38 
       
    39 if (($id == 1) || ($id == $maxnodes) || ($perhop == 1)) then
       
    40 
       
    41     set file =  $mylogroot/node-$id.conf
       
    42 
       
    43     
       
    44     echo  set id $id > $file
       
    45     echo  set maxnodes $maxnodes >>  $file
       
    46     echo  set perhop $perhop >> $file
       
    47 
       
    48   
       
    49     echo  set tmp_logdir  $localtmpdir >> $file
       
    50 
       
    51     echo set dtn2testroot $dtn2testroot >> $file
       
    52     echo set localdir $txdir >> $file
       
    53     echo set ftplogfile $ftplogfile >> $file
       
    54     cat $baseconfig >> $file
       
    55 
       
    56 
       
    57     setenv LD_LIBRARY_PATH /usr/local/BerkeleyDB.4.2/lib
       
    58     setenv HOME /tmp/ 
       
    59 
       
    60     #-l $mylogroo
       
    61      set cmd = "$myexeroot/bundleDaemon -t   -c $file  -o $info.bd >>& $info "
       
    62      echo $cmd  >> $info
       
    63 
       
    64      ## Actually execute the command 
       
    65  	$myexeroot/bundleDaemon  -d -t  -c $file -o $info.bd  >>& $info
       
    66 
       
    67 endif