\ Re: Re: Re: Re: Re: Re: Re: Re: Re: Untitled - /g/pasta 2.4
From Subtle Goose, 5 Years ago, written in Bash.
  1. #!/bin/bash
  2. function check {
  3.         if [ $? -eq 0 ]
  4.     then
  5.         result="UP!"
  6.     fi
  7.     if [ $? -ne 0 ]
  8.     then
  9.         result="DOWN!"
  10.     fi
  11.     exit 0  
  12. }
  13. curl -s -o "/dev/null/" startpage.com
  14. check;
  15. echo "Startpage is" $result
  16.  

Replies to Re: Re: Re: Re: Re: Re: Re: Re: Re: Untitled rss

Title Name Language When
Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Untitled Little Elephant bash 5 Years ago.