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

Re: [ns] Tcl script





thanx but this doesn't work as well.


On Sun, 1 Apr 2001, Sridharan K Iyer wrote:

>
> I guess you must declare n as global.
>
>
> __Sridhar__
>
> On Sun, 1 Apr 2001, gokul ramasubramanian wrote:
>
> * >
> * >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.
> * >
> * >
> * >
> * >
> * >
>