Thank you.That works great.Tom...
On Friday, January 13, 2017 9:46 AM, Kees Nuyt <[email protected]> wrote:
On Fri, 13 Jan 2017 08:12:33 +0000 (UTC),
"[email protected]" <[email protected]> wrote:
> Hello,I have a batch (.bat) file that runs a C program to
> pre-process a text file to a clean .csv file.
> Then the batch file runs SQLite3 -init to execute dot (.)
> commands. Everything works great except the last dot
> command ".exit" or ".quit" to close the SQLite3 program
> out. I always have to manually enter .exit to get back
> to the command prompt. What can I do to have SQLite3
> automatically exit?
> The batch file has the following commands:
> cls
> SOE_sort.exe %1
> sqlite3.exe -init SOE_sortRC.sqliterc
Try:
cls
SOE_sort.exe %1
sqlite3.exe <SOE_sortRC.sqliterc
The -init parameter is meant to run an initialisation script, so
it isn't supposed to exit. In other words, it is an alternative
for ~/.sqliterc .
https://www.sqlite.org/src/artifact?name=6095531aa900decd&ln=5634-5650
A script as redirected input _does_ execute .quit, it even exits
without .quit when the stream reaches end of file.
--
Regards,
Kees Nuyt
_______________________________________________
sqlite-users mailing list
[email protected]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users
_______________________________________________
sqlite-users mailing list
[email protected]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users