Created
          April 1, 2016 08:41 
        
      - 
      
- 
        Save caseyfw/19f81d8f28fc479d3f9e384239a3ff21 to your computer and use it in GitHub Desktop. 
    Adelaide Telstra TCP Connection Test Script
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #!/bin/bash | |
| while true; do | |
| wget -O /dev/null --quiet --connect-timeout=2 www.adelaide.edu.au --tries=1 | |
| if [[ $? -eq 0 ]]; then | |
| echo "$(date +%Y-%m-%d:%H:%M:%S) success" | |
| else | |
| echo "$(date +%Y-%m-%d:%H:%M:%S) fail" | |
| fi | |
| done | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment