Skip to content

Commit

Permalink
feat: added http_tail.sh for tailing remote logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukáš Svoboda committed Jan 22, 2020
1 parent 747f378 commit d32390a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions scripts/http_tail.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/bash

URL=${URL:-"https://skweb1.ko.seznam.cz:8888/szn-sklik-userproxy/access_log"}

if [ -z "$USER" -o -z "$PASSWD" ]; then
echo "Envs USER and PASSWD are mandatory!"
exit 1
fi

while(true); do
sleep 2;
wget -c --password $PASSWD --user lukas.svoboda2 -o /dev/null --no-check-certificate "$URL"
done

0 comments on commit d32390a

Please sign in to comment.