Hi,
I'm trying to execute a tcl-file by passing some arguments from another tcl-file.
#main.tcl
for {set i 1} {$i <= 3} {incr i} {
exec {./ns.exe} test.tcl($i)
}
#test.tcl
set ns [new Simulator]
...
set name "file"
append name $i
append name ".tr"
set fileId [open $filename "w"]
...
How can I pass that variable i to test.tcl?
thx!
I'm trying to execute a tcl-file by passing some arguments from another tcl-file.
#main.tcl
for {set i 1} {$i <= 3} {incr i} {
exec {./ns.exe} test.tcl($i)
}
#test.tcl
set ns [new Simulator]
...
set name "file"
append name $i
append name ".tr"
set fileId [open $filename "w"]
...
How can I pass that variable i to test.tcl?
thx!