- Timestamp:
- Feb 8, 2024, 11:37:56 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20230313/tools/eam/rebalance/launch.find.sh
r42531 r42620 1 1 #!/bin/csh 2 2 3 set run = v04 set version = 202308025 6 # set mode to 'find' or 'find.test'7 3 set mode = find 8 9 set srchost = (ipp100 ipp108 ipp112 ipp114) 10 set srcvol = ( 0 0 1 0) 11 set tgthost = (ipp161 ipp161 ipp162 ipp162) 12 set tgtvol = ( 0 1 0 1) 13 14 set mydir = /data/ipphome1.0/home/eugene/rebalance.20230802 15 set fraction = 0.90 4 set program = `basename $0` 5 source $HOME/.rebalance.sh 16 6 17 7 if ($#argv == 0) then 18 echo "USAGE: launch.find.shlaunch"19 echo "USAGE: launch.find.sh find(Nentry)"20 echo " eg: launch.find.sh find1"8 echo "USAGE: $program launch" 9 echo "USAGE: $program run (Nentry)" 10 echo " eg: $program run 1" 21 11 exit 2 22 12 endif … … 26 16 set i = 1 27 17 while ($i <= $#srchost) 28 echo ssh -f $srchost[$i] "cd $mydir && ./launch.find.sh find $i" 29 ssh -f $srchost[$i] "cd $mydir && ./launch.find.sh find $i" 30 # echo ssh $f ps ux 31 # ssh $f ps ux 32 # ssh $f killall mana 33 # ssh $f killall find 34 @ i++ 18 echo ssh -f $srchost[$i] "cd $mydir && ./$program run $i" 19 ssh -f $srchost[$i] "cd $mydir && ./$program run $i" 20 @ i++ 35 21 end 36 22 exit 0 37 23 endif 38 24 39 if ("$1" == " find") then25 if ("$1" == "run") then 40 26 if ($#argv != 2) then 41 echo "USAGE: launch.find.sh find(Nentry)"42 echo " eg: launch.find.sh find1"27 echo "USAGE: $program run (Nentry)" 28 echo " eg: $program run 1" 43 29 exit 2 44 30 endif … … 53 39 set myhost = `hostname` 54 40 if ($hn != $myhost) then 55 echo "ERROR: need to run findon the source host ($hn vs $myhost)"41 echo "ERROR: need to run $mode on the source host ($hn vs $myhost)" 56 42 exit 3 57 43 endif 58 44 59 echo "running on $myhost for source $hn.$hv to target $tn.$tv in mode $mode, version $version"45 echo "running $program on $myhost for source $hn.$hv to target $tn.$tv in mode $mode, version $version" 60 46 mkdir -p $hn.$hv 61 47 echo "./rebalance.mana $mode $hn $hv $tn $tv $version $fraction > & $hn.$hv/log.$mode.$version.$run &" … … 64 50 endif 65 51 66 echo "USAGE: launch.find.shlaunch"67 echo "USAGE: launch.find.sh find(Nentry)"68 echo " eg: launch.find.sh find1"52 echo "USAGE: $program launch" 53 echo "USAGE: $program run (Nentry)" 54 echo " eg: $program run 1" 69 55 exit 2
Note:
See TracChangeset
for help on using the changeset viewer.
