#!/bin/sh -u # USER=abcd0001 [GO=teaching.idallen.com] $0 # Run this as root and set environment var USER to your CLS account # userid before running this script. Fetches and runs a marking script. # Optionally uses GO environment variable for alternate site: # GO=teaching.idallen.org (default if not set) # GO=teaching.idallen.com # GO=elearning.algonquincollege.com/coursemat/alleni/idallen # -Ian! D. Allen - idallen@idallen.ca - www.idallen.com PATH=/bin:/usr/bin ; export PATH LC_ALL=C ; export LC_ALL # BUG: the TCH .com site gives 403 Forbidden for curl -A Mozilla/4.0 # but -A mozilla seems to work. 2015-03-11 -IAN! # The .org site doesn't care either way, so use it as default. GO=${GO:-teaching.idallen.org} # Sleep a bit before running the script itself, so that fetch messages print # before the script starts producing output. # curl -s -S -A mozilla \ http://"$GO"/cst8177/15w/notes/data/assignment07fetch.sh \ | { sleep 2 ; /bin/sh -s "$@" ; }