giving scenario file at terminal in ns2.35
system specifications
ubuntu 12.04 32 bit network simulator 2.35 i want to give topology file at run time in ns2.35 working on random scenarios,, so have to run numerous simulations for statistics but every time running topology ,,i have to rewrite topology file name in TCL script which is very time consuming this is what i was doing before in myscript.tcl i write following lines Code:
# myscript.tcl it is running successfully ,,, but so as to run numerous various topologies i have to rewrite file name i.e t1..assuming rest of the parameters are same.. i want to give topology file at terminal such as Code:
ns myscript.tcl < t1 Code:
set vals [read stdin] i tried one thing more so as to source the instance of variable Code:
set v "[ read stdin]" dont know ..which step i missed.... |
All times are GMT -5. The time now is 07:42 AM. |