GnuCash - closing database from Command Line?

Dave H hellvee at gmail.com
Tue Aug 30 18:20:29 EDT 2016


You might want to check out
http://wiki.gnucash.org/wiki/FAQ#Q:_GnuCash_says_that_it_can.27t_obtain_the_lock_for_my_file._What_should_I_do.3F
and see it that is relevant to your issue.

Cheers Dave H.


On 30 August 2016 at 08:49, hirapanna via gnucash-user <
gnucash-user at gnucash.org> wrote:

> I have GnuCash setup on my Windows 10 desktop, with the backend database as
> MySQL. I have also set GnuCash to retrieve online quotes. I has been
> working
> fine for the last few years.
>
> To update the prices, I start GnuCash, and update the prices from the Price
> Editor.
>
> I wanted to have an automatic process to update the quotes, so I setup a
> scheduled task running a batch file. I have set it to run once a day.
>
> The batch file is a simple invocation of GnuCash CLI as:
>
>     gnucash.exe --add-price-quotes mysql://user:pass@server/database_name
>
> The task executes successfully, but when I try to open the GnuCash
> application after the update, I get an error saying that the database is
> locked, and I can open it Read-Only, Create a New File, Open Anyway or
> Quit.
>
> If I open the database read-only, I can go to the price editor and see when
> the price update was made. If I close GnuCash, and then open it again, I do
> not get the read-only error message.
>
> I am curious to know what is going on. Did the CLI invocation leave the
> database open? Is there a way to close the database from command line?
>
>
>
>
> --
> View this message in context: http://gnucash.1415818.n4.
> nabble.com/GnuCash-closing-database-from-Command-Line-tp4686347.html
> Sent from the GnuCash - User mailing list archive at Nabble.com.
> _______________________________________________
> gnucash-user mailing list
> gnucash-user at gnucash.org
> https://lists.gnucash.org/mailman/listinfo/gnucash-user
> -----
> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.
>


More information about the gnucash-user mailing list