Many Thanks Bong ( Pls Keep going)
Sim.tcl wil take the arguments from the text file ( which contains test ids)
( so my text file contains list of testids like test1 ,test2,test3,test4.......)
sim.tcl test1
sim.tcl test2
so that i have used file io in tcl
sim.tcl $line
inorder to execute...
One more point for your information
Using exec:
If i am using exec command it is hanging
exec tclsh ../bin/sim.tcl $line
Using Source
source ../bin/sim.tcl $line
If I am using the source command
Please suggest some ideas
Error:wrong #args :should be source "filename
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 "...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.