Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # display current us radar
- ###########
- #
- ##########
- # wget http://www.gnu.org/software/wget/
- # tiv https://github.com/radare/tiv
- #
- ##########
- term_width="48"
- radarURL="http://images.intellicast.com/WxImages/Radar/usa.gif"
- #radarURL="http://radar.weather.gov/Conus/Loop/NatLoop.gif"
- clear="/usr/bin/clear"
- cd="/usr/bin/cd"
- mktemp="/usr/bin/mktemp"
- wget="/opt/local/bin/wget"
- tiv="/opt/local/bin/tiv"
- rm="/bin/rm"
- #
- ###########
- clear
- cd $(mktemp -d -t usradarim)
- wget -v "$radarURL"
- tiv -c -s $term_width *.gif
- cd ..
- rm -rf usradarim*
- exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement