On Tue, Oct 20, 2009 at 8:48 AM, Roman Naumenko <ro...@frontline.ca> wrote: >> If you're a little more concerned with getting it >> close to 10 seconds, >> you can use something like this: >> >> tick-1s >> / i++ >= 10 / >> { >> exit(0); > > How this script should look to have this 10 sec intervals?
You just need to append this extra clause to the end of the file, like this: [ ... ] dtrace:::END { normalize(@rate, (timestamp - start) * 1024 / 1000000000); printf(" %-26s %8s %8s %10s %10s\n", "REMOTE IP", "EVENT", "COUNT", "Kbytes", "KB/sec"); normalize(@bytes, 1024); printa(" %-26s %8s %...@8d %...@10d %...@10d\n", @num, @bytes, @rate); } tick-1s / i++ >= 10 / { exit(0); } Chad _______________________________________________ dtrace-discuss mailing list dtrace-discuss@opensolaris.org