#!/mod/bin/jimsh package require cgi source /mod/webif/lib/setup httpheader "text/plain" set file [cgi_get file "/tmp/hosts"] if {$file eq "-"} { exit } if {[file exists $file]} { puts ">>> File already exists." exit }