From 553748fdcddda6cd42acb822e6c66d38767c3f26 Mon Sep 17 00:00:00 2001 From: Oleg Sheynin Date: Wed, 5 Jun 2024 17:47:51 -0400 Subject: [PATCH] progress --- scripts/crypto_hist_md/process_daily_md.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/crypto_hist_md/process_daily_md.sh b/scripts/crypto_hist_md/process_daily_md.sh index 4732536..74ff49b 100755 --- a/scripts/crypto_hist_md/process_daily_md.sh +++ b/scripts/crypto_hist_md/process_daily_md.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash + date=${1} if [ "${date}" == "" ] ; then date="yesterday" @@ -11,7 +12,7 @@ SourceFile=$(date -d ${date} "+%Y%m%d.mktdata.db") SourceFileZip="${SourceFile}.gz" SourceFilePath=$(date -d ${date} "+${SourceRootDir}/%Y/%m/${SourceFileZip}") -TargetDir=/tmp # URGENT change to /opt/jupyter_gpu/data +TargetDir="/opt/jupyter_gpu/data/crypto_md" TargetFile=$(date -d ${date} "+%Y%m%d.mktdata.ohlcv.db") TargetFilePath="${TargetDir}/${TargetFile}" @@ -48,6 +49,7 @@ function download_file { echo ${Cmd} eval ${Cmd} done + chmod 600 ${TargetFilePath} ls -lh ${TargetFilePath}