I am writing a shell script to scp a project and part of it involves transferring some important tables in my database.
I have the following stored in the file SQLTableTransfer
:
.o MyTable1.sql;
.dump MyTable1;
.o MyTable2.sql;
.dump MyTable2;
.o MyTable3.sql;
.dump MyTable3;
And took a chance on
$ sqlite3 SQLTableTransfer
But this just opened the Sqlite3 shell. What is the correct way to run a script like this from the command line?