On Fri, 31 Aug 2018 19:29:47 +0200, Stéphane AULERY
<[hidden email]> wrote:
> When I use the -init option the .exit statement
> at the end of my script is never executed.
> I launch sqlite from a batch file on Windows Server 2012 and Windows 7 64 bit.
> Command line :
> sqlite3.exe -init myscript.scr
If you want a script to exit, use redirection:
The -init option is meant to run a specific initialization
before the main script is executed.
You can do something like:
sqlite3.exe -init initscript.scr <myscript.scr
Running the script as an init file produces only the first text. An .exit command in an init file will only terminate the execution of the init file itself, not the sqlite shell as a whole. This is intended.
Von: sqlite-users [mailto:[hidden email]] Im Auftrag von Stéphane AULERY
Gesendet: Freitag, 31. August 2018 19:30
An: [hidden email] Cc: [hidden email] Betreff: [EXTERNAL] [sqlite] .exit in script is not working
When I use the -init option the .exit statement at the end of my script is never executed.
I launch sqlite from a batch file on Windows Server 2012 and Windows 7 64 bit.