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

Re: nam error



You have to install nam as well.


**************************************************************************
Hala A. ElAarag
Ph.D. Student
School of Computer Science 
University of Central Florida
Orlando, FL 32816
**************************************************************************

On Wed, 23 Sep 1998, Sid Takkella wrote:

> 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
> ------------------------------------------------------------------------------
>