mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-04 21:04:41 +00:00
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@1215 e7d03fd6-7b0d-0410-9947-9c21f3af8025
12 lines
371 B
Bash
Executable file
12 lines
371 B
Bash
Executable file
#!/bin/sh
|
|
# this script is intended to be run daily from cron
|
|
# adjust as you wish
|
|
# GNU GPL Copyright (C) 2004 Bastian Kleineidam
|
|
|
|
PATH="/bin:/usr/bin"
|
|
LOGFILE="$HOME/.linkchecker_blacklist"
|
|
URL="http://www.heise.de"
|
|
|
|
./linkchecker -Fblacklist/$LOGFILE $URL
|
|
|
|
[ -r $LOGFILE ] && awk '/^[[:digit:]]+/ {if ($1 > 1) printf "URL %s failed for %d days.", $2, $1; }' $LOGFILE
|