wrong # args: should be "exit code" while executing "exit" (in namespace eval "::request" script line 12) invoked from within "namespace eval request { puts -nonewline "" set Lk [lsort [array names env]] set f [open env.txt w] foreach k $Lk { puts $f "$k $env($k)" } close $f..."

OUTPUT BUFFER:

source /usr/local/apache2/PourRivet/SessionBeforeScript.tcl namespace eval request { puts -nonewline "" set Lk [lsort [array names env]] set f [open env.txt w] foreach k $Lk { puts $f "$k $env($k)" } close $f exit puts -nonewline " " }