|
|
|
|
@ -1,15 +1,5 @@
|
|
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
|
|
# function writeSqlite3 ()
|
|
|
|
|
# {
|
|
|
|
|
# # now import the csv data in to sqlite db
|
|
|
|
|
# echo "write data to sqlite3"
|
|
|
|
|
# sqlite3 -batch bandwidth.db <<"EOF"
|
|
|
|
|
# .separator ","
|
|
|
|
|
# .import speedtest.tmp bandwidth
|
|
|
|
|
# EOF
|
|
|
|
|
# }
|
|
|
|
|
|
|
|
|
|
function writeMariaDB ()
|
|
|
|
|
{
|
|
|
|
|
echo "write data to mariadb"
|
|
|
|
|
@ -24,7 +14,6 @@ function runTest ()
|
|
|
|
|
bat speedtest.tmp
|
|
|
|
|
|
|
|
|
|
# write output to db
|
|
|
|
|
# writeSqlite3
|
|
|
|
|
writeMariaDB
|
|
|
|
|
|
|
|
|
|
# write output to csv
|
|
|
|
|
|