Advertisement
Kalashnikov

Untitled

Jun 24th, 2011
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.39 KB | None | 0 0
  1. #!/bin/bash
  2. while !wget -t 0 -O PO_tiers.xml_new 'http://pokemon-online.eu/tiers.xml'
  3.     do :
  4. done
  5. if cmp PO_tiers.xml PO_tiers.xml_new > /dev/null
  6. then
  7.     date +'%d.%m, %H:%M No changes in PO tiers.' >> tiersupdatelog.txt
  8.     rm PO_tiers.xml_new
  9. else
  10.     date +'%d.%m, %H:%M PO Tiers were updated.'  >> tiersupdatelog.txt
  11.     rm PO_tiers.xml
  12.     mv PO_tiers.xml_new PO_tiers.xml
  13.     php -f tiersupdater.php
  14. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement