Cron and GConf errors (with --add-price-quotes)

Derek Atkins warlord at MIT.EDU
Thu Sep 23 10:26:39 EDT 2010


Jacek Politowski <jp at jp.pl.eu.org> writes:

> 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)?

Please file a bug report on this.

> BTW. Is it safe to do invoke 'gnucash --add-price-quotes=datafile'
> with another instance of GnuCash running (working on the same data
> file)?

No, it is not safe.

-derek

-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord at MIT.EDU                        PGP key available


More information about the gnucash-user mailing list