Skip to content

Commit

Permalink
Poll URLs for text and notify when found (OSX only)
Browse files Browse the repository at this point in the history
  • Loading branch information
cowboy committed Jan 8, 2015
1 parent a0b0013 commit 14fa054
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions bin/poll-url
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

url="$1"
string="$2"

while true; do
echo "Checking URL."
curl -s "$url" | grep -i "$string" >/dev/null && {
echo "\"$string\" found!" | terminal-notifier -message -title "Poll URL" -open "$url"
}
sleep 10
done
1 change: 1 addition & 0 deletions init/30_osx_homebrew_recipes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ recipes=(
nmap
sl
ssh-copy-id
terminal-notifier
the_silver_searcher
tree
)
Expand Down

0 comments on commit 14fa054

Please sign in to comment.