Canceling Course News Posts (draft)

Course accounts are able to cancel news articles with the cancel-news script.

  • articles may be canceled from the command-line by specifying the article number.
  • articles may be canceled by piping the offending article (at least the headers) into cancel-news.

  • the script will display the entire article in a pager (hit q to only show the first page).
  • the user is normally required to confirm the cancellation with a Y or y followed by carriage-return.

student.cs$ cancel-news -h
Usage: cancel-news [options] 
-or- cat article | cancel-test.py [options] Must be run by course account user. -h for help. Options: -h, --help show this help message and exit -d, --dry-run don't do the cancel, do everything up to that point. -f, --force don't display article or require confirmation. Only displays errors (to STDERR).

-- DanielAllen - 04 Jun 2010

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r1 - 2010-06-04 - DanielAllen
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback