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

Last change on this file since 1066 was 1066, checked in by iritscen, 7 years ago

Updating Val to new location of files on oni2.net and slight changes to Archive API.

  • Property svn:executable set to *
File size: 1.4 KB
RevLine 
[1064]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, --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"
[1066]14EXCEPT_ONLINE="http://iritscen.oni2.net/val/exceptions.txt"
[1064]15REPORT_DIR="/path/to/ValExtLinks reports"
16UPLOAD_INFO="/path/to/Validate External Links/sftp_login.txt"
17
18
19# Run for limited number of URLs, record OK codes, upload
20#bash "$VALEXTLINKS" --links "$LINKS_ONLINE" --exceptions "$EXCEPT_ONLINE" --output "$REPORT_DIR" --record-ok-links --suggest-snapshots --end-url 20 --upload "$UPLOAD_INFO"
21
22# Run with local extlinks and start/end URL, record OK codes
23#bash "$VALEXTLINKS" --links "$LINKS_LOCAL" --output "$REPORT_DIR" --record-ok-links --suggest-snapshots --start-url 70 --end-url 75
24
25# Normal run
26bash "$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.