Add some WIP demo download script

This commit is contained in:
Ari Timonen 2020-05-03 10:30:14 +02:00
parent a8e3fc9bb7
commit 263cc2279e
2 changed files with 7 additions and 0 deletions

5
script/dl_demos.sh Executable file
View file

@ -0,0 +1,5 @@
cd /srv/ensl/files/demos/sputnik ||exit 1
lynx -cache=0 -dump -listonly "http://ensl.gk-servers.de/public/index.php?dir=demos/SPUNTIK-1/" | grep -E "(*\.gz$)|(*\.dem$)" | awk '{print $2}'|tee demlinks.txt && wget --content-disposition -nc -i demlinks.txt
rm demlinks.txt
lynx -cache=0 -dump -listonly "http://ensl.gk-servers.de/public/index.php?dir=demos/" | grep -E "(*\.gz$)|(*\.dem$)" | awk '{print $2}'|tee demlinks.txt && wget --content-disposition -nc -i demlinks.txt
rm demlinks.txt

2
script/dl_logs.sh Executable file
View file

@ -0,0 +1,2 @@
cd /srv/ensl/files/logs/sputnik1 ||exit 1
lynx -cache=0 -dump -listonly "http://ensl.gk-servers.de/public/index.php?dir=logs/SPUTNIK-1/" | grep -E "(*\.gz$)|(*\.log$)" | awk '{print $2}'|tee links.txt && wget --content-disposition -nc -i links.txt