Fix the symbol update - it didn't do anything.
This commit is contained in:
@@ -28,8 +28,15 @@ EOF
|
|||||||
|
|
||||||
set +e
|
set +e
|
||||||
echo filling symbols table | tee | systemd-cat -t "`basename $0`" -p info
|
echo filling symbols table | tee | systemd-cat -t "`basename $0`" -p info
|
||||||
sqlite3 consolidated.sqlite3 '.timeout 10000'\\n'insert INTO Symbols select DISTINCT Symbol from OptionQuotes where OptionQuotes.Symbol not in (select Symbol from Symbols);'
|
symbolUpdateSQL=$(cat <<-EOF
|
||||||
|
.timeout 10000;
|
||||||
|
insert INTO Symbols
|
||||||
|
select DISTINCT Symbol
|
||||||
|
from OptionQuotes
|
||||||
|
where OptionQuotes.Symbol not in (select Symbol from Symbols);
|
||||||
|
EOF
|
||||||
|
)
|
||||||
|
echo "${symbolUpdateSQL}" | sqlite3 consolidated.sqlite3
|
||||||
|
|
||||||
inotifywait -e create -r /home/schwab/OptionRecorderSchwab/data/ | tee | systemd-cat -t "`basename $0`" -p info
|
inotifywait -e create -r /home/schwab/OptionRecorderSchwab/data/ | tee | systemd-cat -t "`basename $0`" -p info
|
||||||
sleep 200 # wait 200 seconds - this should be enough time for all files to finish writing...
|
sleep 200 # wait 200 seconds - this should be enough time for all files to finish writing...
|
||||||
|
|||||||
Reference in New Issue
Block a user