Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- bp=`curl -s "https://www.google.com/finance/getprices?q=2706&x=TYO&i=10&p=30m&f=d,c,v,o,h,l" | tail -n1 | cut -d ',' -f2`
- kp=`curl -s "https://www.google.com/finance/getprices?q=3656&x=TYO&i=10&p=30m&f=d,c,v,o,h,l" | tail -n1 | cut -d ',' -f2`
- echo "B:$bp K:$kp"
- # script filename: watchkb.sh
- # How to use (watch every 60sec)
- # watch -d -n 60 watchkb.sh
- # use google finance undocumented api. too frequency use to BAN ><
Add Comment
Please, Sign In to add comment