updating quote prices by cron on Mac

John Ralls jralls at ceridwen.us
Sun Jan 24 10:08:24 EST 2016


> On Jan 23, 2016, at 11:27 PM, Chris Good <chris.good at ozemail.com.au> wrote:
> 
> Hi,
> 
> 
> 
> I'm updating the documentation for bug
> <https://bugzilla.gnome.org/show_bug.cgi?id=639776> 639776 [1].
> 
> 
> 
> Can a Mac user please advise if setting up a cron job to do:
> 
> env `dbus-launch` sh -c 'trap "kill $DBUS_SESSION_BUS_PID" EXIT;
> /path/to/gnucash --add-price-quotes /path/to/file.gnucash'
> 
> works as it does in Linux?
> 
> 
> 
> [1] https://bugzilla.gnome.org/show_bug.cgi?id=639776
> 

No, it doesn't work like Linux because dbus isn't available in OS X, but it's not necessary for the cron job to worry about it. Just run /path/to/Gnucash.app/Contents/MacOS/Gnucash —add-price-quotes /path/to/file.gnucash and dbus will take care of itself. Or not, it's not used on Gnucash 2.6.

Regards,
John Ralls




More information about the gnucash-user mailing list