-1

I have to check a server is up or not by Firing certain URL. I tried using wget command,where there is a response like "HTTP request sent, awaiting response... 200 OK " is coming which shows the server is up and running.but i cant return the status to make it automate. I have a list of 10 URL which i have to nake it automate to check all the URL are responding properly or not. please help.

Biswa Patra
  • 59
  • 1
  • 1
  • 8

1 Answers1

0

This is literally it:

if curl https://example.com
then
    echo "up"
else
    echo "down"
fi
l0b0
  • 55,365
  • 30
  • 138
  • 223