curl / wget issue to open an url

Maverick0174

New member
Joined
May 25, 2023
Messages
1
Hi all,
I try to trigger a stock update of my products with an extension (opencart)
The extension works fine and the developer provided an url to trigger stock update via cronjob.
When I execute this url with a browser, all works fine and the update process is triggered. But when I run it in cron, it doesn't.

curl -silent "https://my-domain.xxx/shop/admin/cron_indi.php?route=stockmanager/update/stockstarts" >/dev/null

When I execute above in the terminal, it fetches but the stock update won't trigger. (Same with wget)
I wondering why, since the developer ensures that exactly this is running with cronjob for many customers since many years with curl.
Since the url works fine in a browser, I've no reason to doubt his statement. Still I wondering why it won't work for me :(
No denied errors or similar in place.

I've the same issue with another one, which should trigger to sent an email. Also here, executed in a browser it works. With curl or wget not.

I'm not an expert in any of this, just the poor guy who has to do the job lol. Any suggestions (at best explained for dummies) highly
appreciated.

Cheers
Andi
 
Back
Top