Skip to content

Instantly share code, notes, and snippets.

@jemerick
Created June 1, 2010 21:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jemerick/421522 to your computer and use it in GitHub Desktop.
Save jemerick/421522 to your computer and use it in GitHub Desktop.
#!/bin/bash
east=1
while [ 1 -eq 1 ]
do
echo "toggle"
if [ $east -eq 1 ] ; then
curl "http://tracks.emerick.org/api/broadcast?token=7d0bc705c04c4c6ebd4cfcc29e18eca5&lat=37.648387&long=-77.619488"
east=0
else
curl "http://tracks.emerick.org/api/broadcast?token=7d0bc705c04c4c6ebd4cfcc29e18eca5&lat=37.332153314398475&long=-122.02068328857422"
east=1
fi
sleep 30
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment