Cron and GConf errors (with --add-price-quotes)
Jacek Politowski
jp at jp.pl.eu.org
Thu Sep 23 04:28:39 EDT 2010
I was trying to setup a cron job to update price quotes on my stocks.
So I created a shell script that checks whether another copy of
gnucash is running and, if not, invokes
'gnucash --add-price-quotes=${datafile}'.
It works perfectly when I run it under my Gnome desktop session,
however when it's run by cron, it gives errors:
"GConf Error: Failed to contact configuration server; the most common
cause is a missing or misconfigured D-Bus session bus daemon. (...)"
Stock prices get updated however, but I wonder if it's dangerous.
May '--add-price-quotes' actually need some data from
GConf? If not, maybe it would be advisable to suppress GConf error
messages with '--add-price-quotes', or at least give a indication that
it's a normal situation in the docs. Or maybe there is another
solution (to link somehow cron environment with user's GConf)?
BTW. Is it safe to do invoke 'gnucash --add-price-quotes=datafile'
with another instance of GnuCash running (working on the same data
file)?
--
Jacek Politowski
More information about the gnucash-user
mailing list