Hi,
I don't have any time to really try this but maybe you could try
simulating the cat program using a bat script like this
cat.bat:
============
@echo off
cmd /C type %1
============
Andrej
On 6/5/06, Vadim V. Zhytnikov <vvzhy at mail.ru> wrote:
> Hi!
>
> I have to confess that problem with omplotdata.exe
> on Windows is more complicated than I originally
> surmised. The trouble is omplotdata's design
> namely the following line near the end of the script
>
> lappend omcommand [exec cat [lindex $argv 0]]
>
> This command appends contents of the text
> file maxout.openmath to the name of certain tcl function.
> The resulting command is later executed to produce
> plot. This is the way how data to be plotted is transfered
> to the plotting function.
>
> Contents of the file maxout.openmath is fetched
> as output of UNIX cat command. Unfortunately all
> may attempts to simulate cat behavior with
> any DOS command of batch file failed and
> I have serious doubts that it can be done.
>
> The only option to revive omplotdata on
> Windows which I see is to replace not-portable command
>
> [exec cat ...]
>
> by something more elaborate and platform independent.
> Essentially we need tcl function which read plain text
> file and stores it's contents to some
> tcl variable. Sounds almost trivial but
> my knowledge of tcl is near zero.
>
>
> --
> Vadim V. Zhytnikov
>
> <vvzhy at mail.ru>
> <vvzhy at netorn.ru>
>