Guest User

Untitled

a guest
Apr 4th, 2017
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.28 KB | None | 0 0
  1. #!/bin/zsh
  2. rm -rf index.html
  3. wget http://192.168.1.177/ -O mesure.html
  4. dist=$(grep -E [0-9] mesure.html)
  5. array=[$(date),$dist]
  6. sed '$ s/.$//' /var/www/site\ PI/data.json
  7. echo $array,',' >> /var/www/html/site\ PI/data.json
  8. echo "," >> /var/www/html/site\ PI/data.json
  9. exit 0
Add Comment
Please, Sign In to add comment