Hello every one! I did check the archive before I wrote this, and the only related I found was this:
http://mailman.isi.edu/pipermail/ns-users/2006-May/055626.html However I did try it and didnt work, so let me ask the question again: What is the correct code to include awk (file or code) within ns TCL script so the awk file can be executed without having trace file, so no consuming disk space (no big trace files, just the results we want to see using awk) AND at the same time it gives the same results as if we have the whole trace file and we filter it by the awk file In other words, I dont need trace file, since my scenario produce a huge trace file (in Gs) and I just want the results from awk file, which can be run at the same time as the simulation The previous suggestion was: set tr [open "| awk -f filter.awk >out.tr" w] $ns trace-all $tr Which I tried and didnt work properly Any suggestion? Regards Tariq
