From 263cc2279e9766fe829c8d1c741bd6a17c2d5f63 Mon Sep 17 00:00:00 2001 From: Ari Timonen Date: Sun, 3 May 2020 10:30:14 +0200 Subject: [PATCH] Add some WIP demo download script --- script/dl_demos.sh | 5 +++++ script/dl_logs.sh | 2 ++ 2 files changed, 7 insertions(+) create mode 100755 script/dl_demos.sh create mode 100755 script/dl_logs.sh diff --git a/script/dl_demos.sh b/script/dl_demos.sh new file mode 100755 index 0000000..b4f40f6 --- /dev/null +++ b/script/dl_demos.sh @@ -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 diff --git a/script/dl_logs.sh b/script/dl_logs.sh new file mode 100755 index 0000000..91a6f9c --- /dev/null +++ b/script/dl_logs.sh @@ -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