#!/mod/bin/jimsh package require cgi source /mod/var/mongoose/lib/setup require clipboard.class puts "Content-Type: text/html" puts "" cgi_input #cgi_dump set cb [[clipboard new {path "/tmp/webif-browse.cb"}] load] set action [cgi_get act list] switch $action { list { if {![$cb size]} { puts "Clipboard is empty" exit } } add { } del { } clear { } }