Advertisement
Guest User

Untitled

a guest
Jul 4th, 2015
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. /usr/sfw/bin/wget --secure-protocol=SSLv3 mail.google.com 2>&1 | awk '/^ /'
  4. if [ $? -ne 0 ]
  5. then echo "Server is UP"
  6. else
  7. echo "Error: URL "mail.google.com" is not responding!!." >> /var/adm/messages
  8. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement