Skip to content
Snippets Groups Projects
Commit f0ae5537 authored by qxt1u23's avatar qxt1u23
Browse files

(Commit message) code optimization, removed tosql.sql

parent dcb3b708
No related branches found
No related tags found
No related merge requests found
time price_usd
2024-12-10 15:00:06 2670.39
2024-12-10 15:20:03 2668.89
2024-12-10 15:48:53 2667.84
2024-12-10 15:50:05 2666.89
2024-12-10 15:53:06 2665.94
2024-12-10 15:55:04 2665.11
2024-12-10 15:57:03 2665.13
2024-12-10 15:58:05 2665.13
2024-12-10 15:59:06 2664.98
2024-12-10 16:01:04 2664.22
2024-12-10 16:02:05 2664.38
2024-12-10 16:03:05 2664.75
2024-12-10 16:04:06 2664.68
2024-12-10 16:05:03 2664.47
2024-12-10 16:06:05 2664.53
2024-12-10 16:07:06 2663.84
2024-12-10 16:08:05 2664.40
2024-12-10 16:09:06 2664.23
2024-12-10 16:10:04 2664.62
2024-12-10 16:11:05 2664.84
2024-12-10 16:12:04 2664.87
2024-12-10 16:12:28 2664.91
2024-12-10 16:13:06 2664.91
2024-12-10 16:14:06 2664.91
2024-12-10 16:15:06 2663.39
2024-12-10 16:16:03 2663.68
2024-12-10 16:17:05 2663.18
2024-12-10 16:18:06 2663.35
2024-12-10 16:18:31 2663.26
2024-12-10 16:19:05 2662.98
2024-12-10 16:20:04 2662.82
2024-12-10 16:21:06 2662.82
2024-12-10 16:22:05 2662.93
2024-12-10 16:23:05 2662.85
2024-12-10 16:24:03 2662.83
2024-12-10 16:25:06 2662.64
2024-12-10 16:26:05 2662.64
2024-12-10 16:27:04 2662.15
2024-12-10 16:28:05 2662.03
2024-12-10 16:29:04 2661.96
2024-12-10 16:30:04 2662.07
2024-12-10 16:31:05 2661.89
2024-12-10 16:32:05 2662.34
2024-12-10 16:33:06 2662.34
2024-12-10 16:34:04 2662.43
2024-12-10 16:39:03 2663.64
2024-12-10 16:40:03 2663.93
2024-12-10 16:41:06 2664.41
2024-12-10 16:42:07 2664.95
2024-12-10 21:26:04 2674.91
2024-12-10 21:27:03 2674.95
2024-12-10 21:28:07 2675.01
2024-12-10 21:29:06 2675.07
2024-12-10 21:30:04 2675.04
2024-12-10 21:31:07 2674.57
2024-12-10 21:32:06 2674.54
2024-12-10 21:33:04 2674.64
2024-12-10 21:34:06 2673.66
2024-12-10 21:35:07 2673.99
2024-12-10 21:36:07 2673.76
2024-12-10 21:37:04 2673.88
2024-12-10 21:38:07 2673.99
2024-12-10 21:39:06 2674.07
2024-12-10 21:40:04 2674.21
2024-12-10 21:41:07 2674.89
2024-12-10 21:42:07 2675.88
2024-12-10 21:43:07 2676.44
2024-12-10 21:44:04 2676.27
2024-12-10 21:45:05 2676.26
2024-12-10 21:46:05 2676.97
2024-12-10 21:47:06 2676.28
2024-12-10 21:48:04 2676.40
2024-12-10 21:49:07 2676.76
2024-12-10 22:01:07 2680.20
2024-12-10 22:02:07 2679.56
2024-12-10 22:03:04 2680.64
2024-12-10 22:04:07 2681.34
2024-12-10 22:30:06 2684.36
2024-12-10 23:00:03 2690.82
2024-12-10 23:30:07 2687.00
2024-12-11 00:00:01 2687.51
2024-12-11 00:30:05 2688.30
2024-12-11 01:00:07 2690.62
2024-12-11 01:30:04 2691.50
2024-12-11 02:00:07 2694.43
2024-12-11 02:30:08 2694.03
2024-12-11 03:00:05 2693.15
2024-12-11 03:30:08 2692.68
2024-12-11 04:00:04 2692.35
2024-12-11 04:30:08 2691.41
2024-12-11 05:00:05 2691.92
2024-12-11 05:30:08 2692.80
2024-12-11 06:00:04 2693.66
2024-12-11 06:30:09 2693.66
2024-12-11 07:00:07 2693.66
2024-12-11 07:30:03 2695.06
2024-12-11 08:00:04 2696.76
2024-12-11 10:30:02 2702.36
2024-12-11 11:03:46 2699.88
2024-12-11 11:06:02 2699.93
......@@ -421,3 +421,26 @@ obtainUSDGold.sh executed at Tue Dec 10 22:01:07 +08 2024
obtainUSDGold.sh executed at Tue Dec 10 22:02:07 +08 2024
obtainUSDGold.sh executed at Tue Dec 10 22:03:04 +08 2024
obtainUSDGold.sh executed at Tue Dec 10 22:04:07 +08 2024
obtainUSDGold.sh executed at Tue Dec 10 22:30:06 +08 2024
obtainUSDGold.sh executed at Tue Dec 10 23:00:03 +08 2024
obtainUSDGold.sh executed at Tue Dec 10 23:30:07 +08 2024
obtainUSDGold.sh executed at Wed Dec 11 00:00:01 +08 2024
obtainUSDGold.sh executed at Wed Dec 11 00:30:05 +08 2024
obtainUSDGold.sh executed at Wed Dec 11 01:00:07 +08 2024
obtainUSDGold.sh executed at Wed Dec 11 01:30:04 +08 2024
obtainUSDGold.sh executed at Wed Dec 11 02:00:07 +08 2024
obtainUSDGold.sh executed at Wed Dec 11 02:30:08 +08 2024
obtainUSDGold.sh executed at Wed Dec 11 03:00:05 +08 2024
obtainUSDGold.sh executed at Wed Dec 11 03:30:08 +08 2024
obtainUSDGold.sh executed at Wed Dec 11 04:00:04 +08 2024
obtainUSDGold.sh executed at Wed Dec 11 04:30:08 +08 2024
obtainUSDGold.sh executed at Wed Dec 11 05:00:05 +08 2024
obtainUSDGold.sh executed at Wed Dec 11 05:30:08 +08 2024
obtainUSDGold.sh executed at Wed Dec 11 06:00:04 +08 2024
obtainUSDGold.sh executed at Wed Dec 11 06:30:09 +08 2024
obtainUSDGold.sh executed at Wed Dec 11 07:00:07 +08 2024
obtainUSDGold.sh executed at Wed Dec 11 07:30:03 +08 2024
obtainUSDGold.sh executed at Wed Dec 11 08:00:04 +08 2024
obtainUSDGold.sh executed at Wed Dec 11 10:30:02 +08 2024
obtainUSDGold.sh executed at Wed Dec 11 11:03:46 +08 2024
obtainUSDGold.sh executed at Wed Dec 11 11:06:02 +08 2024
......@@ -31,7 +31,7 @@ echo "$price"
# mkdir -p ./logs
echo "obtainUSDGold.sh executed at $(date)" >> /home/qxt1u23/comp1314/logfile.log
mysql -u root gold_database -e "SET @price=$price; source /home/qxt1u23/comp1314/tosql.sql;"
mysql -u root gold_database -e "INSERT INTO gold_price (time, price_usd) VALUES (NOW(), $price);"
mysql -u root gold_database -e "SELECT * FROM gold_price;" > /home/qxt1u23/comp1314/export_sql_data.txt
/usr/bin/gnuplot /home/qxt1u23/comp1314/graph_plotting.gp
plot.png

47.6 KiB | W: | H:

plot.png

45.7 KiB | W: | H:

plot.png
plot.png
plot.png
plot.png
  • 2-up
  • Swipe
  • Onion skin
-- script.sql
USE gold_database;
INSERT INTO gold_price (time, price_usd) VALUES (NOW(), @price);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment