Advertisement
Kalashnikov

Untitled

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