Linux Tips and Tricks

Linux Tips and Tricks

Check website is up or not


Hi All,

Now we are gonna check the particular website is up or not. For that we need the lynx command

lynx is a general purpose distributed information browser for the World Wide Web

if you don’t have command in your OS, then you can download and install it from the below URL

or if you use the ubuntu, then execute the below command

sudo apt-get install lynx

Once it is installed, you can try the below program.

$ cat
lynx -dump $1 &> /dev/null
if [ $? = 0 ]
echo “website is up”
echo “website is down. Trigger the email”

Output :

$ ./
website is up
$ ./
website is down. Trigger the email

posted under Uncategorized

Email will not be published

Website example

Your Comment:

Recent Comments