Answer the question
In order to leave comments, you need to log in
How to ping a .bat file with curl?
Hello!
I set myself a strange task, I don’t even know why, but it became interesting.
On the PC there is a batch file with its contents @echo off curl site.loc/index.php?go=ping
, when I run run.bat curl pulls the link and it is recorded in my mini admin panel id | ip | status (null) | date
and here the main question is how do I ping the ip itself and show status code 200 in the admin panel, this is if the bat is running, if not then 404.
I'm just wondering how to implement it.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question