Skip to content

Instantly share code, notes, and snippets.

@angrytoast
Created April 10, 2014 23:39
Show Gist options
  • Save angrytoast/10432250 to your computer and use it in GitHub Desktop.
Save angrytoast/10432250 to your computer and use it in GitHub Desktop.
omg hosts
#! /usr/bin/env bash
PROBLEM="$(cat /etc/hosts | grep tableausoftware.com | grep -v '^#' | wc -w)"
if [ "$PROBLEM" -gt 0 ]; then
say omg fix yer hosts
fi
@doublejosh
Copy link

Worth it 😎

crontab -e
*/1 * * * * /Users/USER/hosts_checker.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment