Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/zsh
- rm -rf index.html
- wget http://192.168.1.177/ -O mesure.html
- dist=$(grep -E [0-9] mesure.html)
- array=[$(date),$dist]
- sed '$ s/.$//' /var/www/site\ PI/data.json
- echo $array,',' >> /var/www/html/site\ PI/data.json
- echo "," >> /var/www/html/site\ PI/data.json
- exit 0
Add Comment
Please, Sign In to add comment