Cron Job - Hosting wants a Url

Good Morning,

I have been trying to set up a Cron Job. I have an action working locally through CMD and the Console but my hosting provider 1&1 wants a URL to run.

Ideally i would get it to run an action in backend/controllers rather than rewrite the action as its quite a large code block.

so questions:

  1. Can a cron job run an action in a backend controller
  2. If not what URL would i use to run the Console action

Thank you!

What do you mean by “wants a URL to run”?

Can a cron job run an action in a backend controller

Technically yes. You can request it via curl or wget.

If not what URL would i use to run the Console action

There’s nothing built-in for it because such restriction isn’t common (are you are sure you understood them correctly?).

HI @samdark,

yeah it has to be an actual site URL but i have it working now! after some tinkering.

It uses wget

Thank you