Heartbeat monitoring cronjob setup, how?

Hello!

I am trying to setup a cronjob in my flint2 router over web-if.

I tested curl in terminal, and it is not installed. I most install it?

How do people normally do? They use curl or something different?

Thank you! :folded_hands:

uclient-fetch provided wget may fit the bill

2 Likes

... install curl ?

2 Likes

Is curl the best alternative? I am going after what ChatGPT says thats why I am asking you masters, if people are using something else lol :star_struck:

If you're asking the masters why are you bothering the knucklehead ChatGP ? :wink:

2 Likes

I try to not ask too much dumb questions :sweat_smile:

So Curl is the best way? Thank you!

1 Like

Curl is fine, if you can afford the flash space it requires.

2 Likes

Yes, I have the flint2 with 7GB I think.

So lets go with the installation and see what happens...

To be continued.

It worked, thank you very much! I just hope it dont take to much cpu or ram to run 4-5 of curl commands every minute.

:folded_hands:

You have limited wget preinstalled, zeerow flash nits needed, just that you must convert command options to wget

2 Likes

Something like wget -q -o /dev/null https//./... ; echo $?

2 Likes

I will go for curl it is ok, seem to be a little bit better.. if you ask ChatGPT lol. :face_with_peeking_eye:

But what command is best to run every minute:

* * * * * curl --retry 3 --retry-delay 1 -m 15 https://example1.com

or this

* * * * * curl -fsS --head https://example2.com >/dev/null`


As you say boss

2 Likes

lol, no! Its because frollic allready told me its fine. And i had set it up, do you think wget is better even with 7GB storage? :open_mouth:

The limited emulated wget is pre-installed. IF it works for purpose you dont have to remember to add supercurl when upgrading. Path of least resistance.

EDIT: feel ree to use AI to translate curl to wget if my proposed params dont work right away.

1 Like

I understand, thank you! But what is the best command line to run wget? I think we need something that dont risk to hang the router, something with timeout maybe or multiple retries, i dont know :expressionless_face:

This kind of emulates silent command, download not saved, rcode returned on http or network error

So out of curiosity what does this heartbeat monitoring do?

Think of hardware watchdog, you miss the deadline and professor assigns you poor grade.

2 Likes

What do you think of this solomon from mr chatgpt: :tropical_fish:
* * * * * wget --spider -q https://example.com >/dev/null 2>&1