Quote:
Originally Posted by noorzaman
This is not an error in actual, but this is a wrong attempt to execute your script file like following way.
Running script like this is not allowed , I mean it will generate the error ( $ ns
% ns examplename.tcl <~~~~ Please DON'T go like this )
Please run your script like this way.
$ ns examplename.tcl <~~~~ DO this way
Noor Zaman
|
I amalso facing the same trouble, pls help
set nf [open out.nam w]
$ns namtrace-all $nf
proc finish {} {
global ns nf
$ns flush-trace
close $nf
exec nam out.nam &
exit 0
}
set n0 [$ns node]
set n1 [$ns node]
$ns duplex-link $n0 $n1 1Mb 10ms DropTail
$ns at 5.0 "finish"
$ns run
zungeru@zungeru-AOA110:~$ ns example1.tcl
can't read "ns": no such variable
while executing
"$ns namtrace-all $nf"
(file "example1.tcl" line 2)
zungeru@zungeru-AOA110:~$