Reputation: 69
I have started learning TCL scripting language. I use ActivateState Tcl Devkit 5.3.0. When I create new simulator it gives mistake like this:
invalid command name "new" while executing "new Simulator" invoked from within "set ns [new Simulator]"
Upvotes: 4
Views: 3617
Reputation: 11
Try this line below, assuming you are using ns
ns filename.tcl
Upvotes: 1
Reputation: 1843
If you are using ns (i've got the exactly the same error some hours ago so i guess yes ^^ ) you can try this command :
ns your_tcl_script.tcl
And if ns is correctly installed it will make the linkage for you
Have a nice day
Upvotes: 2
Reputation: 7247
There is no command new
in Tcl.
So it is provided by some package or by some modified shell.
Assuming you use ns2 or something like that, you need to use the appropriate shell or load the package via package require
into a normal tclsh shell.
Upvotes: 1