IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 5, 2024, 8:27:02 AM (2 years ago)
Author:
eugene
Message:

cleaning up these scripts a bit (could be consolidated)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/eam/rebalance/launch.find.sh

    r42485 r42606  
    11#!/bin/csh
    2 
    3 set run = v0
    4 set version = 20230802
    52
    63# set mode to 'find' or 'find.test'
    74set mode = find
     5set mydir = /data/ipphome1.0/home/eugene/rebalance.20240129
    86
    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
     7source $mydir/configure.sh
     8set program = `basename $0`
    169
    1710if ($#argv == 0) then
    18   echo "USAGE: launch.find.sh launch"
    19   echo "USAGE: launch.find.sh find (Nentry)"
    20   echo "   eg: launch.find.sh find 1"
     11  echo "USAGE: $program launch"
     12  echo "USAGE: $program run (Nentry)"
     13  echo "   eg: $program run 1"
    2114  exit 2
    2215endif
     
    2619  set i = 1
    2720  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
     21    echo ssh -f $srchost[$i] "cd $mydir && ./$program run $i"
     22         ssh -f $srchost[$i] "cd $mydir && ./$program run $i"
    3423  @ i++
    3524  end
     
    3726endif
    3827
    39 if ("$1" == "find") then
     28if ("$1" == "run") then
    4029  if ($#argv != 2) then
    41     echo "USAGE: launch.find.sh find (Nentry)"
    42     echo "   eg: launch.find.sh find 1"
     30    echo "USAGE: $program run (Nentry)"
     31    echo "   eg: $program run 1"
    4332    exit 2
    4433  endif
     
    6453endif
    6554
    66 echo "USAGE: launch.find.sh launch"
    67 echo "USAGE: launch.find.sh find (Nentry)"
    68 echo "   eg: launch.find.sh find 1"
     55echo "USAGE: $program launch"
     56echo "USAGE: $program run (Nentry)"
     57echo "   eg: $program run 1"
    6958exit 2
Note: See TracChangeset for help on using the changeset viewer.