On 16 Jan 2012, at 6:59pm, Bill McCormick wrote:

> James Pearson wrote, On 1/16/2012 12:28 PM:
>> If it's just for setting up databases, tables, etc, why not just use a sql 
>> script?
>> 
>> Throw all your database object creation sql into a file and then execute 
>> that file from within sqlite using the ".read FILE" command.
>> 
> I think this is what I'm looking for.  Is there some way to have sqlite3 
> execute a .read FILE command from a bash prompt?

Sure.  Use bash scripting.  Or script any other unix shell to run the 'sqlite3' 
command-line tool.  Command options documented here:

<http://www.sqlite.org/sqlite.html>

Simon.
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to