Error while running example in tcl script - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Error while running example in tcl script


I am working on ns-2.33 on linux RedHat 9.0 machine. I am trying to run an example for FTP application on wired network having 4 nodes. When I run using ns sample_2.tcl I get following error:

invalid command name "Queue/ms"
while executing
"Queue/ms create _o22 DropTail"
invoked from within
"catch "$className create $o $args" msg"
invoked from within
"if [catch "$className create $o $args" msg] {
if [string match "__FAILED_SHADOW_OBJECT_" $msg] {
delete $o
global errorInfo
error "class $..."
(procedure "new" line 3)
invoked from within
"new Queue/$qtype $args"
("default" arm line 5)
invoked from within
"switch -exact $qtype {
ErrorModule {
if {[llength $args] > 0} {
set q [eval new $qtype $args]
else {
set q[new $qtype Fid]
intserv {
set qtyp..."
(procedure "_o3" line 14)
invoked from within
"$ns simplex-link $n0 $n2 5Mb 2ms DropTail"
(file "sample_2.tcl" line 13)

I don't understand how to deal with this error. Please help me with this. It is urgent! Please!

Sign In or Register to comment.