forked from hummypkg/webif
99dde5a4a5
git-svn-id: file:///root/webif/svn/humax/pkg/src/webif/trunk@534 2a923420-c742-0410-a762-8d5b09965624
28 lines
524 B
Plaintext
Executable File
28 lines
524 B
Plaintext
Executable File
#!/mod/bin/jimsh
|
|
|
|
package require cgi
|
|
source /mod/var/mongoose/lib/setup
|
|
require ts.class pretty_size
|
|
|
|
puts "Content-Type: text/html\r\n\r\n"
|
|
|
|
cgi_input
|
|
#cgi_dump
|
|
|
|
set joinstart [clock milliseconds]
|
|
|
|
set cmd {/mod/bin/nicesplice}
|
|
|
|
foreach file [split [cgi_get files] ","] {
|
|
lappend cmd "-in" [file rootname $file]
|
|
set dir [file dirname $file]
|
|
}
|
|
lappend cmd "-out" "$dir/[cgi_get dest]"
|
|
|
|
puts "($cmd)"
|
|
puts [exec {*}$cmd]
|
|
|
|
set jointime [expr [expr [clock milliseconds] - $joinstart] / 1000.0]
|
|
puts "Time taken: $jointime"
|
|
|