[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
nam error
Hi:
I tried to run my first program on ns, and this is the error i got. could some one tell me whats wrong? I am running ns-2.1b4 on win95. i used the binary file ns-2.1b4.exe to install.
Thanks
Sid
----------------------------ERROR--------------------------------
ns: finish: couldn't execute "nam": no such file or directory
while executing
"exec nam out.nam &"
(procedure "finish" line 7)
invoked from within
"finish"
--------------------------ACTUAL PROGRAM---------------------------------------
set ns [new Simulator]
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 "finish"
$ns run
------------------------------------------------------------------------------