#!/usr/local/bin/tclsh8.4 # The exec tclsh'' below will simply be ignored. # \ if [ -e /usr/bin/tclsh ]; then exec /usr/bin/tclsh "$0" ${1+"$@"} ; fi # \ if [ -e /usr/local/bin/tclsh8.4 ]; then exec /usr/local/bin/tclsh8.4 "$0" ${1+"$@"} ; fi # \ if [ -e /usr/local/bin/tclsh8.3 ]; then exec /usr/local/bin/tclsh8.3 "$0" ${1+"$@"} ; fi # \ if [ -e /usr/bin/tclsh8.4 ]; then exec /usr/bin/tclsh8.4 "$0" ${1+"$@"} ; fi # \ exec tclsh "$0" ${1+"$@"} puts "Content-Type: text/html" puts "" puts "The environment" if {[catch { puts [info hostname]

close [socket 127.0.0.1 5000] source prodebug.tcl if {![debugger_init 127.0.0.1 5000]} { puts "debugger_init failed" puts "

$errorInfo
" } else { puts "Contacted the debugger" } } err]} { puts "
$errorInfo
" } debugger_eval { puts "

The environment

" puts foreach name [lsort [array names env]] { puts "" } puts
$name$env($name)
} exit 0