**Introduction** Wikitool is a script to get information from the [wikit] [metakit] data file from the command line. It's special because it is coded in pure [Tcl]. The script can be downloaded from http://www.equi4.com/pub/sk/wikitool.tcl . To use this tool, cd into the directory where you have a wikit.tkd file - that's the data portion of the wikit. Then, execute wikitool.tcl -l Be certain that you get the most current copy - as mentioned elsewhere, previous versions are not likely to work. The results you should expect to see, on stdout, consist of lines such as: 10: 2002/06/19 06:45:26 80.126.24.9 Jean-Claude Wippler The format is: Field: 1 2 3 4 5 page-number: last-update-date last-update-time last-updater's-IP page-title 14apr03 [jcw] - There's another far more sophisticated "wikitool" by Tom Krehbiel; it's on [sdarchive]. ''Might be an idea to rename this thing to "wikiutil" or some such, just to avoid confusion...'' [LV] 2008-Jan-11 I am seeing, today, some peculiar results using Tom K's wikitool.kit against the .tkd from the latest incarnation's wikit.tkd file. Specifically, I run wikitool.kit wikit.tkd xref page@page and part of what I get out seems to indicate that some of the pages don't have references when they in fact do have references. Anyone else out there doing anything with this type of data? ---- **Using Tom Krehbiel's wikitool.kit as CGI in tclhttpd** 7 October 2003: I'd like to use the wikitool from Tom Krehbiel as a CGI, to maintain my own wiki which runs as a CGI inside my local [tclhttpd]. To do this, you have to adapt the "wikitool.kit" (found on http://mini.net/sdarchive/wikitool.kit), to avoid a "package require Tk". So do an: sdx unwrap wikitool.kit and then * in "main.tcl" surround "wm withdraw ." with a catch * and in "lib/wikit.vfs/lib/wikit/wikit.tcl" surround "package require Tk" with a catch and remove or uncomment the "exit .." in case of a failure of "package require Wikit::Gui" wrap it up again: sdx wrap wikitool.kit Furthermore you can use the following "wikitool_admin.cgi"-script and place it into your cgi-bin. #!/bin/sh # \ exec tclsh84 "$0" ${1+"$@"} source cgilib.tcl # available commands set cmds { pages,report pages,out pages,html pages,index pages,add pages,update pages,fix images,report images,add images,update images,out xref,refs xref,page@page xref,page2image xref,image2page sweep,report sweep,mark sweep,unmark sweep,clean defrag } # little "Vignette"-like wrapper ... ugh proc SHOW {var} { upvar $var _var return [expr {[info exists _var] ? "$_var" : ""}] } # build up a select-box for all commands proc showCommands {cmds selected} { set result {} foreach cmd $cmds { append result "" } return $result } # initialize query-parameters to variable values foreach {key value} [Cgi_List] { set $key $value } if {![info exists commands]} { set commands [lindex $cmds 0] } puts "Content-Type: text/html" puts "" puts [subst {
" while { [gets $PIPE DATA] >= 0 } { puts $DATA } puts "" catch {close $PIPE} msg } puts "