[GNC] Automated Reporting

John Ralls jralls at ceridwen.us
Mon Apr 23 17:33:07 EDT 2018



> On Apr 23, 2018, at 2:23 PM, Justin Phelps <justin at onitato.com> wrote:
> 
> I'm hoping there's a command line method for generating reports from a
> gnucash file. I want to script a series of daily, weekly, and monthly
> reports that are automatically emailed to certain people. I can achieve the
> scheduling and emailing from my server, but having some way to get this
> data out from gnucash without clicking through the interface would be
> really useful.
> 
> How would you approach this challenge?

GnuCash can be scripted in Scheme via $GNC_DATA_HOME/custom-user.scm. Since that's read and acted upon at every startup I suggest that you create a user specifically to generate the reports and and create a custom-user.scm for it and put the jobs in its crontab (or use it to create the Scheduled Action scripts if you're on Windows).

Regards,
John Ralls




More information about the gnucash-user mailing list