Community discussions

MikroTik App
 
bskcuba
just joined
Topic Author
Posts: 2
Joined: Thu Jul 27, 2017 2:05 am

Cron Jobs With mikrotik???

Mon Feb 21, 2022 1:29 pm

Hello friends, I wanted to ask a question because while I was sleeping I had the idea, that I could do this even faster in my CHR. I have a website and my cron jobs are every 5 minutes, but I thought maybe I could make them with the faster CHR every 1 minute or less...

Now my question is,
RouterOs supports running scripts for CRON JOBS from a web?

It is to execute a link from time to time (When trying to access that link, the orders are automatically sent from one website to another, which is what I want)


What I need is for the mikrotik to try to consult an https address and that's it

Cron Jobs Cron Tabs

Example of cron jobs
https://exampleofmysite.com/includes/cr ... ion_1=true

Or

/usr/bin/wget -O - -q -t 1 https://exampleofmysite.com/includes/cr ... ion_1=true
 
User avatar
Amm0
Forum Guru
Forum Guru
Posts: 3422
Joined: Sun May 01, 2016 7:12 pm
Location: California

Re: Cron Jobs With mikrotik???

Wed Mar 02, 2022 3:02 pm

What I need is for the mikrotik to try to consult an https address and that's it
You can use /tool/fetch to replace `curl`
And `cron` is represented by /system/scheduler

Both follow RouterOS CLI/script syntax, so you have to map the parameters for `curl` and `cron` to their Mikrotik equivalents. But you should be able to use /tool/fetch in a script you setup to run every min in /system/scheduler.

Who is online

Users browsing this forum: No registered users and 24 guests