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

Re: [ns] beginner question (help!)



Try to use this finish():

proc finish {} {
         global ns nf
         $ns flush-trace
         close $nf
         puts "running nam"
         exec nam out.nam &
         puts "nam finished"
         exit 0
}

Then you'll know whether it hangs in "exec nam ...". If yes,
just delete the "exec nam ..." and run nam manually:)

- difa

On Thu, 22 Mar 2001, Cwilich, Sebastian, ALSVC wrote:

> 
> Sorry to ask something so obvious:
> 
> I'm just getting started w/ ns, and decided to use the windows binary to
> play w/ it.  I downloaded the binary, and when I run it, I get the ns
> prompt, which is good.  nam also works fine, which is good.  However, when I
> run the first example in the Greis tutorial, it hangs in the "$ns run"
> command.  When I look at the nam.out file, I see that it was generated fine
> (even checked it for more complex examples), so it seems like the problem is
> in calling the "finish" procedure.  However, since nam works I can run it
> manually after ns hangs.
> 
> I heard somewhere that a "HOME" variable needs to be set?  Also,
> anything else I need to do?  So far I've just downloaded the binaries and
> unzipped (using ns2.1b5 and nam "release" version).
> 
> Thanks for any help,
> 
> Sebastian Cwilich
>