On Tue, 2006-06-06 at 20:01 +0300, Vadim V. Zhytnikov wrote:
> I've tried this and a bit different .bat files.
> It doesn't work! And I don't have any idea why.
> I'll try to bake tcl function.
Hi Vadim,
here is the tcl function you need:
Replace:
lappend omcommand [exec cat [lindex $argv 0]]
By:
set plotdata ""
set filename [lindex $argv 0]
set fd [open $filename "r"]
while {[eof $fd] != 1} {
gets $fd line
set plotdata [concat $plotdata $line]
}
lappend omcommand $plotdata
It works fine in Linux. I have not tested it in Windows yet, but it
should work because it is pure tcl without any external commands.
Cheers,
Jaime