Hello!
On Monday 02 March 2009 01:00:26 Dossy Shiobara wrote:
> > It's work but is not stable.
>
> Tcl [exec] from within a multi-threaded application like AOLserver is
> not recommended, as it has undesirable side effects.
And how about tcl open command? Is this code safe for AOL:
proc mbg_tidy {buf} {
if {$buf eq {}} {return {}}
set res {}
set cat [open "|cat" r+]
set io [ open "|/usr/bin/tidy -utf8 -asxhtml -q --show-body-only 1 -f
/dev/null <@ $cat" r]
puts $cat $buf
flush $cat
close $cat
set res [read $io]
catch {close $io}
return $res
}
Best regards.
--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list, simply send an email to
<[email protected]> with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject:
field of your email blank.