File indexing completed on 2026-04-10 07:49:22
0001
0002
0003 usage(){ cat << EOU
0004
0005 The prefix PFX=tds3gun is obtained from the name of this script
0006
0007 tds3gun.sh get
0008 grabs remote events to local with: ``PFX=tds3gun evtsync.sh``
0009
0010 tds3gun.sh 1
0011 runs ``PFX=tds3gun.sh ab.sh 1`` comparing events with tags 1 and -1
0012
0013 EOU
0014 }
0015
0016
0017
0018 name=$(basename $BASH_SOURCE)
0019 pfx=${name/.sh}
0020
0021 arg=${1:-1}
0022 shift
0023 args=$*
0024
0025
0026 if [ "$arg" == "sync" -o "$arg" == "get" ]; then
0027 cmd="PFX=$pfx evtsync.sh"
0028 else
0029 tag=$arg
0030 cmd="PFX=$pfx ab.sh $tag $args"
0031 fi
0032
0033 echo $cmd
0034 eval $cmd
0035