What is the correct file/path for setting up a cron job to Update Exchange Rate?
TIA
Update Exchange Rate Cron Job
-
heatherbell
- Senior Contributor
- Posts: 2540
- Joined: Mon Oct 07, 2019 4:39 am
- Phoenix Version:
- Has thanked: 35 times
- Been thanked: 243 times
- burt
- Core Team
- Posts: 4561
- Joined: Tue Oct 29, 2019 9:37 am
- Phoenix Version: v1.1.0.8
- : Buy Me A Beverage
- Has thanked: 252 times
- Been thanked: 422 times
Re: Update Exchange Rate Cron Job
It would be *something* like;
wget --user your_admin_username --pass your_admin_password -spider "https://your_site.com/your_admin/currencies.php?action=update" >/dev/null 2>&1
Changing the obvious bits as appropriate. If it's not that, it may be worth asking host.
wget --user your_admin_username --pass your_admin_password -spider "https://your_site.com/your_admin/currencies.php?action=update" >/dev/null 2>&1
Changing the obvious bits as appropriate. If it's not that, it may be worth asking host.
I am not here to build for you.
I am here to build with you. Let's help each other.
I am here to build with you. Let's help each other.
-
heatherbell
- Senior Contributor
- Posts: 2540
- Joined: Mon Oct 07, 2019 4:39 am
- Phoenix Version:
- Has thanked: 35 times
- Been thanked: 243 times
Re: Update Exchange Rate Cron Job
TY
Cron Jobs can be set in the control panel of our host (I think cPanel is the same) and only require the "path to the script".
So I guess, that is, your_admin/currencies.php?action=update.
- burt
- Core Team
- Posts: 4561
- Joined: Tue Oct 29, 2019 9:37 am
- Phoenix Version: v1.1.0.8
- : Buy Me A Beverage
- Has thanked: 252 times
- Been thanked: 422 times
Re: Update Exchange Rate Cron Job
Possibly. Give it a go (setting it up as your Panel suggests) and see if it runs.
If it runs...happy days.
If it runs...happy days.