Skip to content

Instantly share code, notes, and snippets.

@dshafik
Created August 24, 2011 18:09
Show Gist options
  • Save dshafik/1168730 to your computer and use it in GitHub Desktop.
Save dshafik/1168730 to your computer and use it in GitHub Desktop.
#!/bin/bash
if [ `./hptouchpad-status.sh` = 0 ];
then
growlnotify -I ./resources_touchpad_icon.icns -m "HP Touchpad in stock" -w
growlnotify -I ./resources_touchpad_icon.icns -m "HP Touchpad in stock" -w
growlnotify -I ./resources_touchpad_icon.icns -m "HP Touchpad in stock" -w
growlnotify -I ./resources_touchpad_icon.icns -m "HP Touchpad in stock" -w
growlnotify -I ./resources_touchpad_icon.icns -m "HP Touchpad in stock" -w
growlnotify -I ./resources_touchpad_icon.icns -m "HP Touchpad in stock" -w
growlnotify -I ./resources_touchpad_icon.icns -m "HP Touchpad in stock" -w
growlnotify -I ./resources_touchpad_icon.icns -m "HP Touchpad in stock" -w
growlnotify -I ./resources_touchpad_icon.icns -m "HP Touchpad in stock" -w
growlnotify -I ./resources_touchpad_icon.icns -m "HP Touchpad in stock" -w
growlnotify -I ./resources_touchpad_icon.icns -m "HP Touchpad in stock" -w
growlnotify -I ./resources_touchpad_icon.icns -m "HP Touchpad in stock" -w
growlnotify -I ./resources_touchpad_icon.icns -m "HP Touchpad in stock" -w
growlnotify -I ./resources_touchpad_icon.icns -m "HP Touchpad in stock" -w
growlnotify -I ./resources_touchpad_icon.icns -m "HP Touchpad in stock" -w
growlnotify -I ./resources_touchpad_icon.icns -m "HP Touchpad in stock" -w
growlnotify -I ./resources_touchpad_icon.icns -m "HP Touchpad in stock" -w
growlnotify -I ./resources_touchpad_icon.icns -m "HP Touchpad in stock" -w
else
growlnotify -I ./resources_touchpad_icon.icns -m "HP Touchpad NOT in stock"
fi
#!/bin/bash
wget -qO- "http://www.shopping.hp.com/webapp/shopping/can.do?landing=rts_tablet&category=32GB&catLevel=1&storeName=storefronts&lanAttr=Type&jumpid=in_R329_prodexp/hhoslp/psg_ipg/rts_tablet/32GB_HP_TouchPad" | grep "Coming soon" | wc -l
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment