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

Re: [ns] stopping nam trace output before simulation ends



ns does not have a facility that allows you to do it. However, since you
can pipe nam trace you can do whatever you want with the traces on the
fly. For instance, you can pipe it to a little awk script that does
exactly the things you want.

- haobo

On Fri, 10 Nov 2000, Daniel Wong wrote:

> nam trace files can be huge.  For a long simulation, is there a way to stop
> nam trace output after a certain point in the simulation, e.g. so that only the
> first 10 seconds of activity can be captured and animated?  the manual tells
> us how to turn on nam tracing ($ns_ namtrace-all <namtracefile>) but now how
> to turn it off, other than waiting for the simulation to end.
> 
> thanks,
> Daniel
>