A
A
Arthur Strezhinov2018-03-08 22:50:26
PHP
Arthur Strezhinov, 2018-03-08 22:50:26

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) | dateand 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

1 answer(s)
S
Saboteur, 2018-03-08
@saboteur_kiev

The problem is that you won't be able to formulate the purpose of the task
properly.
But no one bothers you to correct your admin panel so that it responds to this request. To do this, just learn PHP AND implement.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question