How to set cron to run specific url

feerdispzoo

Verified User
Joined
Jan 17, 2022
Messages
189
I have script which I can run directly from browser by put url:

Code:
https://thisismycronwebsite.com/cron/fetch-tickets
This working correct directly from browser.

and now how can I set cron to run this url in directadmin?

I placed in command, but looks like this not work:
Code:
*/1 * * * * https://thisismycronwebsite.com/cron/fetch-tickets
 
Thanks for reply.

With this link, when I paste in browser and run I can fetch tickets:


I checked in log cron:
Feb 7 14:50:01 live7263 CROND[257614]: (design) CMD (wget -O /dev/null https://thisismycronwebsite.com/cron/fetch-tickets)

But when I set in this way, cron is running correct every 1 minute. but the tickets are not fetched, I have to run them manually then they fetch - as if the cron did not hit this link.


@update
my issue. I logout from admin account and again check this link in browser and is secure and redirect to login.

Thanks for help.
 
Last edited:
Back
Top