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}/prod"
|
||||||
# RootDir=/home/oleg/develop/cvtt2 ###### D E B U G
|
|
||||||
|
|
||||||
export PYTHONPATH=${RootDir}
|
export PYTHONPATH=${RootDir}
|
||||||
|
|
||||||
@ -15,28 +14,33 @@ StatusChannel="MD-Status"
|
|||||||
Sender=${RootDir}/ops/utils/send_mmost.sh
|
Sender=${RootDir}/ops/utils/send_mmost.sh
|
||||||
|
|
||||||
# ----- For DEBUGGING
|
# ----- For DEBUGGING
|
||||||
# Sender=cat
|
# RootDir=/home/oleg/develop/cvtt2 ###### D E B U G
|
||||||
# StatusChannel=
|
# Sender=cat #### D E B U G
|
||||||
|
# StatusChannel= #### D E B U G
|
||||||
|
|
||||||
run_checklist() {
|
run_checklist() {
|
||||||
|
|
||||||
|
|
||||||
yr=$(date -d 'yesterday' '+%Y')
|
yr=$(date -d 'yesterday' '+%Y')
|
||||||
|
CheckSymbols="A/AAPL N/NVDA M/META"
|
||||||
declare -A Commands
|
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"]=""
|
||||||
Commands["homestore"]+="; echo"
|
for sym in ${CheckSymbols}; do
|
||||||
Commands["homestore"]+="; ssh cvtt@homestore.cvtt.vpn ls -l /works/cvtt/md_archive/equity/alpaca_md/N/NVDA/${yr} | tail -3"
|
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"]=""
|
||||||
Commands["cloud21"]+="; echo"
|
for sym in ${CheckSymbols}; do
|
||||||
Commands["cloud21"]+="; ssh cvtt@cloud21.cvtt.vpn ls -l /opt/store/cvtt/md_archive/equity/alpaca_md/N/NVDA/${yr} | tail -3"
|
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'"
|
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
|
for name in $(printf "%s\n" "${!Commands[@]}" | sort); do
|
||||||
Cmd=${Commands[${name}]}
|
|
||||||
echo "------- ${name}"
|
echo "------- ${name}"
|
||||||
|
Cmd=${Commands[${name}]}
|
||||||
echo ${Cmd}
|
echo ${Cmd}
|
||||||
eval ${Cmd}
|
eval ${Cmd}
|
||||||
done
|
done
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user