Hello people,

I am trying to find a way to create a litle program/script using C
that its job will be to check a specific ip every eg 5 minutes
(an endless loop) and if for example one ping will fail to execute an external command and stop.

Any ideas?

I already wrote a script tha will send an sms using a http api
but now I have to think a way how can I run it when a server will fail
writing a C program...