4
votes

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]"
2

2 Answers

1
votes

There is no command newin 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.

1
votes

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