LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   olsr (https://www.linuxquestions.org/questions/linux-software-2/olsr-4175506760/)

sara83 06-02-2014 08:29 AM

olsr
 
Dear knudfl
I am sorry, Dear I install ns2.33 with ubuntu 12.4 with out any problems and I maked the patch for OLSR protocol after search for the steps from here. but now I don't have the awk for OLSR protocol

please can you send it to me

thanks so much

---------- Post added 06-02-14 at 08:30 AM ----------

Dear knudfl
I am sorry, Dear I install ns2.33 with ubuntu 12.4 with out any problems and I maked the patch for OLSR protocol after search for the steps from here. but now I don't have the awk for OLSR protocol

please can you send it to me

thanks so much

TB0ne 06-02-2014 08:57 AM

Quote:

Originally Posted by sara83 (Post 5180835)
Dear knudfl
I am sorry, Dear I install ns2.33 with ubuntu 12.4 with out any problems and I maked the patch for OLSR protocol after search for the steps from here. but now I don't have the awk for OLSR protocol

please can you send it to me
thanks so much

---------- Post added 06-02-14 at 08:30 AM ----------

Dear knudfl
I am sorry, Dear I install ns2.33 with ubuntu 12.4 with out any problems and I maked the patch for OLSR protocol after search for the steps from here. but now I don't have the awk for OLSR protocol

please can you send it to me
thanks so much

Please read the LQ Rules; you hijacked another thread with a non-related question, then posted this same question FOUR TIMES. Also, we are NOT going to email you things...we will be happy to help you with questions/problems, but providing free, personalized one-on-one email tech support isn't going to happen.

Awk is s Linux system utility...instructions for installing OSLR can easily be found with a Google search:
http://cloudns2.wordpress.com/um-olsr-patch/

...and there are many sample awk scripts for NS2 you can also find:
http://www.nsnam.com/2013/03/awk-scr...cess-data.html

sara83 06-03-2014 12:05 AM

Dear TB0ne
Thanks for your help but the awk is not work please can you send another one if you have

thanks

knudfl 06-03-2014 01:20 AM

@sara83.

Please find a script in "awk_scripts-05.2014.tar.bz2"
https://drive.google.com/file/d/0B7S...it?usp=sharing

When you have tried to use all "68" scripts, and may be failed :
You can modify / write a script to fit your requirements.

-

TB0ne 06-03-2014 10:14 AM

Quote:

Originally Posted by sara83 (Post 5181310)
Dear TB0ne
Thanks for your help but the awk is not work please can you send another one if you have

Sara83:

First, please read the guidelines for "How to ask a smart question". Just saying "is not work", tells us ABSOLUTELY NOTHING about what problem(s) you had. Since you don't tell us what the problem is, how do you expect anyone to be able to help you fix it?

Second, please do not ask people to look things up for you. Google can give you the results you want, as knudfl kindly pointed out. I easily found links to what you were looking for, as did he. Nothing prevented you from finding the same results.

sara83 06-03-2014 02:07 PM

Dear TB0ne
When I need to calculate the awk for olsr I have this problem, and the same problem with the aodv

ht@hts:~/Desktop/result for three protocols/resulte olsr$ gawk -f throughput.awk outa.tr
gawk: throughput.awk:481: (FILENAME=outa.tr FNR=2) fatal: division by zero attempted

Please can you help me for solve this problem

Thanks so much

TB0ne 06-03-2014 02:34 PM

Quote:

Originally Posted by sara83 (Post 5181747)
Dear TB0ne
When I need to calculate the awk for olsr I have this problem, and the same problem with the aodv

ht@hts:~/Desktop/result for three protocols/resulte olsr$ gawk -f throughput.awk outa.tr
gawk: throughput.awk:481: (FILENAME=outa.tr FNR=2) fatal: division by zero attempted

Please, go back and re-read what was told to you by myself and knudfl.

Knudfl gave you a link to 68 scripts...did you try them, as instructed? Did you perform the obvious step of looking at the contents of that script? From the message, it seems very clear that one of the variables you're trying to work with doesn't have data in it...hence the "zero" contents. It tells you the line the error is on. Did you look at it?

sara83 06-03-2014 11:32 PM

#7
yes I tried all of them
thanks

TB0ne 06-04-2014 09:13 AM

Quote:

Originally Posted by sara83 (Post 5181997)
#7
yes I tried all of them
thanks

Really?? You tried ALL 68 scripts, and NONE of them worked???? Did you look at the scripts, the errors, and try to determine where the error was? What errors did you get on all 68 of those scripts???

sara83 06-04-2014 09:36 AM

Dear TB0ne

this is a example for the error I get

ht@hts:~/Desktop/result for three protocols/resulte olsr$ gawk -f throughput.awk outa.tr
gawk: throughput.awk:481: (FILENAME=outa.tr FNR=2) fatal: division by zero attempted

Thanks

TB0ne 06-04-2014 09:51 AM

Quote:

Originally Posted by sara83 (Post 5182281)
Dear TB0ne
this is a example for the error I get

ht@hts:~/Desktop/result for three protocols/resulte olsr$ gawk -f throughput.awk outa.tr
gawk: throughput.awk:481: (FILENAME=outa.tr FNR=2) fatal: division by zero attempted

Right; that's the one you posted first. Are you saying you get the EXACT SAME ERROR on all 68 different scripts?? And again, have you actually LOOKED AT the script?? Specifically, as told to you before, line 481, where the error is? It's telling you exactly where the error is; again, you are getting that error because one of the variables you're feeding it is zero. Meaning you haven't made the changes necessary for it to run with your system, or have an error.

YOU will have to look at that script, and correct the error.

sara83 06-04-2014 12:21 PM

#11
Dear TB0ne

Please can you help me for correct the error

Thanks

knudfl 06-04-2014 12:31 PM

# 10 .

Some certain combinations of figures in the trace file(s)
will result in ``division by zero attempted´´

What's in outa.tr, line 481 ?
( If it's only a few lines that are causing "division by zero attempted" :
You can just delete those lines.)

-

TB0ne 06-04-2014 01:05 PM

Quote:

Originally Posted by sara83 (Post 5182379)
#11
Please can you help me for correct the error

AGAIN
  • YOU need to look at the script, on line 481, AS THE ERROR MESSAGE TELLS YOU
  • Since you don't POST THE SCRIPT, how do you expect us to be able to fix it for you?
  • You need to TRY THE OTHER 68 scripts, as you were asked to before.
We are NOT going to fix/recode your scripts for you. You actually have to show some effort of your own. I highly doubt that you tried all 68 of the other scripts, and at this point, you have shown ZERO effort of your own to even fix the one you have. Which, incidentally, someone else had to look up for you.

Again, the error is on line 481 of that script; you haven't posted that script, the relevant lines, or told us what is being referenced there, or if you made the necessary changes to the script in order for it to work with your system.

sara83 06-04-2014 11:43 PM

Dear TB0ne

What script you mean (awk script or tcl script or trace file)?

Thanks


All times are GMT -5. The time now is 03:24 PM.