This commit is contained in:
Cryptoval Trading Technologies
2026-01-06 14:52:40 +00:00
parent b3fb3e01b3
commit ee4d264ad2
4 changed files with 36 additions and 2 deletions
+31
View File
@@ -0,0 +1,31 @@
#!/bin/bash
OrigDir=$(pwd)
go_back() {
cd ${OrigDir}
}
trap go_back EXIT
RunDir=$(realpath $(dirname $0))
LogDir=${RunDir}/logs
cd ${RunDir}
run_retrofit() {
local Script=${1}
shift
local Source=${1}
shift
local Params=${*}
mkdir -p ${LogDir}
Cmd="nohup ${RunDir}/${Script} ${Source} ${Params} > ${LogDir}/$(date '+%Y%m%d_%H%M%S').${Script}.${Source}.log 2>&1 &"
print_and_run ${Cmd}
}
for src in cloud28 cloud29; do
run_retrofit retrofit_crypto.sh $src
done
run_retrofit sim_crypto_retrofit.sh
+2
View File
@@ -3,8 +3,10 @@
# DAILY_SIM_CRYPTO_DATE=20250725 /usr/bin/docker compose -f /works/docker/daily_mktdata/docker-compose.yml up daily_sim_crypto
#
#
cd $(realpath $(dirname $0))
source $(realpath $(dirname $0))/get_retrofit_dates.sh
DEFAULT_FGLOB=*.crypto_sim_md.db.gz
Source=cvtt@${MD_HOST:-cloud21.cvtt.vpn}