Hi
I am trying to ivoke one tcl from another tcl file
I have two tcl files called ( compile.tcl, sim.tcl)
and one text file list.txt
Script:
#compile.tcl
#!/usr/bin/tcl
set dir "../bin"
set f [open $dir/list.txt r]
while {1} {
gets $f line
puts "SIMULATION STARTS "
exec tclsh $dir/sim.tcl $line
if {[eof $f]} {
close $f
break
}
}
Error here ,I am not able to execute the sim.tcl
Please suggest some ideas
I am trying to ivoke one tcl from another tcl file
I have two tcl files called ( compile.tcl, sim.tcl)
and one text file list.txt
Script:
#compile.tcl
#!/usr/bin/tcl
set dir "../bin"
set f [open $dir/list.txt r]
while {1} {
gets $f line
puts "SIMULATION STARTS "
exec tclsh $dir/sim.tcl $line
if {[eof $f]} {
close $f
break
}
}
Error here ,I am not able to execute the sim.tcl
Please suggest some ideas