[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ns] Change output file
Thanks for the code, but it didn't work. All the output still went into
the file I created first. I think I would have to delete and create all
tracing elements in my simulation.
Thanks
Rankster
Debojyoti Dutta wrote:
>
> I think this is what you can try:
>
> proc change-trace { filename }
> global ns fp
> $ns $fp
> close $fp
> set fp [open $filename w]
> $ns trace-all $fp
> }
>
> set time 100
> at $time "change-trace" $newtracefile
>
> debo
>
> On Fri, 5 Oct 2001, Stefan Rank wrote:
>
> > Hi,
> >
> > is it possible to change the ouput file for the traces (not nam traces)
> > during the simulation? I want to create multiple output files with one
> > simulation run.
> >
> > THANKS
> >
> > Stefan
> >
> >