source: Validate External Links/Run validate_external_links.command@ 1118

Last change on this file since 1118 was 1118, checked in by iritscen, 5 years ago

Fixed ValExtLinks' reading of Archive API replies. Fix for reading links that happen to have a shebang in them. Now knows how to handle NULL namespace links. Now prints elapsed time.

  • Property svn:executable set to *
File size: 2.1 KB
Line 
1#!/bin/bash
2
3# Runs the Validate External Links script
4# Arguments: --help, --links URL, --exceptions URL, --output DIR, --record-ok-links,
5# --suggest-snapshots, --take-screenshots FILE, --start-url NUM, --end-url NUM, --upload FILE
6# Recommended rule:
7#|----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- -----|
8
9# Set variables for any arguments we might use below
10VALEXTLINKS="/path/to/Validate External Links/validate_external_links.sh"
11LINKS_LOCAL="file:///path/to/Validate External Links/Sample files/extlinks.csv"
12LINKS_ONLINE="http://wiki.oni2.net/w/extlinks.csv"
13EXCEPT_LOCAL="file:///path/to/Validate External Links/exceptions.txt"
14EXCEPT_ONLINE="http://iritscen.oni2.net/val/exceptions.txt"
15REPORT_DIR="/path/to/ValExtLinks reports"
16UPLOAD_INFO="/path/to/Validate External Links/sftp_login.txt"
17CHROME="/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
18
19
20# Run with end URL, and record OK codes
21#bash "$VALEXTLINKS" --links "$LINKS_ONLINE" --exceptions "$EXCEPT_ONLINE" --output "$REPORT_DIR" --record-ok-links --suggest-snapshots --end-url 70
22
23# Run with start/end URLs, and record OK codes
24#bash "$VALEXTLINKS" --links "$LINKS_ONLINE" --exceptions "$EXCEPT_ONLINE" --output "$REPORT_DIR" --record-ok-links --suggest-snapshots --start-url 120 --end-url 140
25
26# Run with local extlinks and exceptions, start/end URLs, and record OK codes
27#bash "$VALEXTLINKS" --links "$LINKS_LOCAL" --exceptions "$EXCEPT_LOCAL" --output "$REPORT_DIR" --record-ok-links --suggest-snapshots --start-url 120 --end-url 140
28
29# Run with unfinished screenshot feature
30#bash "$VALEXTLINKS" --links "$LINKS_ONLINE" --exceptions "$EXCEPT_ONLINE" --output "$REPORT_DIR" --record-ok-links --take-screenshots "$CHROME"
31
32# Normal run with no upload
33#bash "$VALEXTLINKS" --links "$LINKS_ONLINE" --exceptions "$EXCEPT_ONLINE" --output "$REPORT_DIR" --suggest-snapshots
34
35# Normal run
36bash "$VALEXTLINKS" --links "$LINKS_ONLINE" --exceptions "$EXCEPT_ONLINE" --output "$REPORT_DIR" --suggest-snapshots --upload "$UPLOAD_INFO"
Note: See TracBrowser for help on using the repository browser.