Does --add-price-quotes also get currencies ?
Geert Janssens
info at kobaltwit.be
Thu May 7 15:14:21 EDT 2009
I didn't follow this thread from the beginning, but I noticed an issue with
crontab which I may be able to help you with. So here goes:
Did you know you can also have a crontab for an ordinary user ? Maybe that can
solve your problem already.
To install a crontab as an ordinary user, simply execute this command as that
user:
crontab -e
or you can also execute it as root like this:
crontab -e <username>
This will open an editor in which you can add your crontab entries and from
then on these entries will be run as that user. Perhaps like this your
environment is correct to get the proper price quotes.
Hope that helps,
Geert
On Thursday 7 May 2009, AmigaPhil wrote:
> Derek Atkins wrote:
> >> Derek, I can't modify the status of the bug I've filled.
> >> As you are the assignee, can you review and mark bug #581192 as
> >> Resolved - Duplicate of bug #568945 ?
> >
> > Done.
>
> Thanks.
>
>
> In the meantime I can upgrade to 2.2.9, I'm trying to find a workaround...
>
> I think the reason I'm having different result with the cron job
> "gnucash --add-price-quote" is because the job is executed as root.
>
> As user, the default currency is EUR. So when I start GnuCash from
> desktop (as user), and click on "Get quotes", I get the EUR-USD
> exchange rate.
>
> As root, the default currency is USD. So when the cron job is executed,
> it retrieves the USD-EUR exchange rate.
>
>
> If I'm right, then the workaround would be to add the "--config-path"
> argument in the crontab (?)
>
> What is the default config path when I start GnuCash as user ?
> $HOME/.gnucash ?
>
> The actual crontab entry I'm using is:
> 20 22 * * 1-5 gnucash --add-price-quotes
> $HOME/Documents/GNUCash/MonPortefeuille >/dev/null 2>&1 #JOB_ID_1
>
> Would:
> 20 22 * * 1-5 gnucash --add-price-quotes
> $HOME/Documents/GNUCash/MonPortefeuille --config-path $HOME/.gnucash
> >/dev/null 2>&1 #JOB_ID_1 do the trick ?
>
>
>
> AmigaPhil
>
> _______________________________________________
> 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.
--
Kobalt W.I.T.
Web & Information Technology
Brusselsesteenweg 152
1850 Grimbergen
Tel : +32 479 339 655
Email: info at kobaltwit.be
More information about the gnucash-user
mailing list