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

Re: [ns] compressed trace



On Fri, 21 Apr 2000, Ezio Ricca wrote:

> I have very large traces for my simulation, does anyone know if I can
> buils gzip traces on the fly?

   set f [open "|gzip -c > trace.tr.gz" w]
   # replaces set f [open trace.tr w ]
   set nf [open "| gzip -c > namtrace.nam.gz" w]
   # replaces set nf [open namtrace.nam w]
   $ns trace-all $f
   $ns namtrace-all $nf

works for me.

L.

<[email protected]>PGP<http://www.ee.surrey.ac.uk/Personal/L.Wood/>