md eqty checklist to use new structure
This commit is contained in:
parent
512f5ce14d
commit
618a7eb0cf
@ -1 +1 @@
|
||||
1.8.1,build for cvtt-rust uses cargo install
|
||||
1.8.2,md eqty checklist to use new structure
|
||||
|
||||
@ -7,7 +7,6 @@ usage() {
|
||||
}
|
||||
|
||||
RootDir="${HOME}/prod"
|
||||
# RootDir=/home/oleg/develop/cvtt2 ###### D E B U G
|
||||
|
||||
export PYTHONPATH=${RootDir}
|
||||
|
||||
@ -15,28 +14,33 @@ StatusChannel="MD-Status"
|
||||
Sender=${RootDir}/ops/utils/send_mmost.sh
|
||||
|
||||
# ----- For DEBUGGING
|
||||
# Sender=cat
|
||||
# StatusChannel=
|
||||
# RootDir=/home/oleg/develop/cvtt2 ###### D E B U G
|
||||
# Sender=cat #### D E B U G
|
||||
# StatusChannel= #### D E B U G
|
||||
|
||||
run_checklist() {
|
||||
|
||||
|
||||
yr=$(date -d 'yesterday' '+%Y')
|
||||
|
||||
CheckSymbols="A/AAPL N/NVDA M/META"
|
||||
declare -A Commands
|
||||
Commands["homestore"]="ssh cvtt@homestore.cvtt.vpn ls -l /works/cvtt/md_archive/equity/alpaca_md/A/AAPL/${yr} | tail -3"
|
||||
Commands["homestore"]+="; echo"
|
||||
Commands["homestore"]+="; ssh cvtt@homestore.cvtt.vpn ls -l /works/cvtt/md_archive/equity/alpaca_md/N/NVDA/${yr} | tail -3"
|
||||
Commands["homestore"]=""
|
||||
for sym in ${CheckSymbols}; do
|
||||
Commands["homestore"]+="ssh cvtt@homestore.cvtt.vpn ls -l /works/cvtt/md_archive/equity/alpaca_md/${yr}/${sym} | tail -3; "
|
||||
done
|
||||
Commands["homestore"]+="echo"
|
||||
|
||||
Commands["cloud21"]="ssh cvtt@cloud21.cvtt.vpn ls -l /opt/store/cvtt/md_archive/equity/alpaca_md/A/AAPL/${yr} | tail -3"
|
||||
Commands["cloud21"]+="; echo"
|
||||
Commands["cloud21"]+="; ssh cvtt@cloud21.cvtt.vpn ls -l /opt/store/cvtt/md_archive/equity/alpaca_md/N/NVDA/${yr} | tail -3"
|
||||
Commands["cloud21"]=""
|
||||
for sym in ${CheckSymbols}; do
|
||||
Commands["cloud21"]+="ssh cvtt@cloud21.cvtt.vpn ls -l /opt/store/cvtt/md_archive/equity/alpaca_md/${yr}/${sym} | tail -3; "
|
||||
done
|
||||
Commands["cloud21"]+="echo"
|
||||
|
||||
Commands["gpushnik"]="ssh oleg@gpushnik.cvtt.vpn 'ls -l /opt/jupyter_gpu/data/eqty_md | tail -10'"
|
||||
|
||||
for name in $(printf "%s\n" "${!Commands[@]}" | sort); do
|
||||
Cmd=${Commands[${name}]}
|
||||
echo "------- ${name}"
|
||||
Cmd=${Commands[${name}]}
|
||||
echo ${Cmd}
|
||||
eval ${Cmd}
|
||||
done
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user