Hi there.
> if { [lindex $argv 0] == "plotdf" } {
> lappend omcommand "plotdf"
> } else {
> lappend omcommand [exec cat [lindex $argv 0]] }
A platform independent way of slurping a file in TCL is as follows:
# Slurp up the data file
set fp [open "somefile" r]
set data [read $fp]
close $fp
From
http://wiki.tcl.tk/367
I just tested it and it works fine.
Cheers
Mike Thomas