[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ns] Tcl script




Hi All,

I am getting this trivial error while running this script. its some syntax
error. i've been stuck up on this...


1       for {set i 0} {$i < 1027} {incr i} {
2       set n$i [$ns node]
3       }


4       for {set i 0} {$i < 1024} {incr i} {
5       $ns duplex-link  $n$i $n1024 10Mb 5ms DropTail
6       }


error in line 5 - can't read "n": no such variable
    while executing
"$ns duplex-link  $n$i $n1024 10Mb 5ms DropTail"

i've tried all combinations like $(n$i)


This is really urgent.
Any help is greatly appreciated.

Gokul.