summaryrefslogtreecommitdiffstats
path: root/pg_list_updater.sh
diff options
context:
space:
mode:
authorFlorian Pritz <f-p@gmx.at>2008-10-23 19:52:30 +0200
committerFlorian Pritz <f-p@gmx.at>2008-10-23 19:52:30 +0200
commitc597b01166c4ac4d042c2256826b69c6fb0bc405 (patch)
tree72f0971a761070273b625650c7cb40149db02ef7 /pg_list_updater.sh
downloadbin-c597b01166c4ac4d042c2256826b69c6fb0bc405.tar.gz
bin-c597b01166c4ac4d042c2256826b69c6fb0bc405.tar.xz
first init
Diffstat (limited to 'pg_list_updater.sh')
-rwxr-xr-xpg_list_updater.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/pg_list_updater.sh b/pg_list_updater.sh
new file mode 100755
index 0000000..ef019c6
--- /dev/null
+++ b/pg_list_updater.sh
@@ -0,0 +1,18 @@
+#!/bin/sh
+exit
+failed() {
+ notify-send -t 10000 -u critical "Updater" "PG list NOT updated!"
+}
+finished(){
+ notify-send -t 10000 "Updater" "PG list update sucessfully"
+}
+
+cd ~flo/stuff/
+wget http://peerguardian.sourceforge.net/lists/p2p.php -O level1.7z &&
+7z x level1.7z &&
+cat level1 | grep -vi moviex.info > p2p.pg &&
+finished ||
+failed
+
+rm "level1.7z"
+rm "level1"