User Tools

Site Tools


haas:scripts:commitchk

commitchk

Objective

A grade not-Z script to check wiki edits and repository commits during a given timeframe.

TODO

  • implement proper error checking (especially on the command-line arguments)
  • might be interesting having course profiles
  • more integration with the attendance system
  • consider creating a subversion repository to place this (and my other scripts) within

Prerequisites

In order to use commitchk, the following conditions need to be met:

  • An accessible wiki site.
  • A working repository.
  • User running the script needs permissions to access wiki, repository, and write appropriate student files.

Usage

To use commitchk, it requires a minimum of 5 arguments, and an optional sixth for debug mode, as follows:

lab46:~$ commitchk data 20101116 20101118 2 1

A common deployment is via an at(1) job:

lab46:~$ at -t 201011301012.00
warning: commands will be executed using /bin/sh
at> /home/wedge/bin/commitchk data 20101118 20101130 4 2
at> <EOT>
job 91 at Tue Nov 30 10:12:00 2010
lab46:~$ 

Parameters are as follows:

  1. class designator (“data” for Data Structures, “unix” for UNIX/Linux Fundamentals, etc.)
  2. starting date in YYYYMMDD format
  3. ending date in YYYYMMDD format
  4. minimum number of repository commits required
  5. minimum number of wiki edits required
  6. optional: debug mode

If ANY sixth argument is supplied, the script will operate in debug mode- no generated data will be written to any files, so it is great for testing modifications without concern of incorrect or undesired data being written.

Script

1
extern> http://lab46.corning-cc.edu/haas/content/scripts/commitchk
haas/scripts/commitchk.txt · Last modified: 2011/06/20 09:42 by 127.0.0.1