Search Results

Search: Posts Made By: ENG_MOHD
13,806
Posted By ENG_MOHD
Thanks for the replies. @RudiC, I have...
Thanks for the replies.

@RudiC, I have created the sample so that each condition meet only one line. In the first condition I was trying to take the time and store it in t_arr[] and in the second...
13,806
Posted By ENG_MOHD
awk script: loop through array
I have a large file where I want to extract the data by using awk script. I have made a small sample of the input data. I have in the awk script two condition . The first one is to collect the...
3,377
Posted By ENG_MOHD
TCL: syntax error in expression with "*"
I'm using tcl scripts in ns2 ( network simulator) through cygwin. It works fine , however, I downloaded an example when i run it , I got the following syntax error:


syntax error in expression...
1,578
Posted By ENG_MOHD
Thanks .. It works
Thanks .. It works
1,578
Posted By ENG_MOHD
Yes it works. Thank you ... One last...
Yes it works. Thank you ...

One last modifications..How about if I want to calculate the first hit. for example instead of calculating the average, I want to filtered out the repeated occurrences....
1,578
Posted By ENG_MOHD
Calculate average for repeated ID within a data
I have an awk script that gives the following output:

Average end-to-end transmission delay 2.7 to 5.7 is 0.635392 seconds
Average end-to-end transmission delay 2.1 to 5.1 is 0.66272 seconds...
3,638
Posted By ENG_MOHD
Well, First of all I'd like to thank you for...
Well, First of all I'd like to thank you for being patient and helpful.
I have updated my post many times based on your questions( thank you) to make obvious and clear.

Now, the latest code you...
3,638
Posted By ENG_MOHD
Yes I agree but I'm still getting one sentence....
Yes I agree but I'm still getting one sentence. Also, how do we get hold of the src that we are calculating for. So in the print statement, we can use the value. I think we need to add the each src &...
3,638
Posted By ENG_MOHD
Okay, the condition seems to work ( not sure yet...
Okay, the condition seems to work ( not sure yet ) but how do I make the code to print the time for each src--->dest. What I'm getting from code I think the last src->dst time. I tried to include...
3,638
Posted By ENG_MOHD
Actually, the src and dst should be read from the...
Actually, the src and dst should be read from the file itself, I don't want to pass the values because there are many like : 2.1, 2.2, 2.3, ......, 2.1489. and the destination has a combination also....
3,638
Posted By ENG_MOHD
Check my update !! Thank for the point
Check my update !! Thank for the point
3,638
Posted By ENG_MOHD
awk script automation
I have the below code which calculates the time difference between src and dst from a large trace file. The code works for a given source and destination. However, I want to automate the code to go...
1,775
Posted By ENG_MOHD
I tried it but I'm still getting syntax error. ...
I tried it but I'm still getting syntax error.

I'm trying to run the script over a file and I'm using the following syntax:



awk -f filename '{match($0,/offset [0-9]+, flags .[A-Z][A-Z]./);...
1,775
Posted By ENG_MOHD
TCL But I don't mind the help in awk
TCL

But I don't mind the help in awk
1,775
Posted By ENG_MOHD
trying to get help with the regular expression...
trying to get help with the regular expression writing ..
Forum: Cybersecurity 06-03-2011
6,373
Posted By ENG_MOHD
How to access private IP address?
HI,
I'm doing a research on client/server connection. I need to run the server code to open socket connection with the client code. To make the test real, I need to run the server code from a a...
1,775
Posted By ENG_MOHD
Regular Expression for line
Hi,

I'm trying to extract if the (offset>0 || flags [MF] ) from the following line:


90.30.180.90.80 > 90.121.333.308.45133: Flags [.], seq 14480:15928, ack 1, win 8088, options...
1,346
Posted By ENG_MOHD
Thank you it works I thought it's like any...
Thank you it works

I thought it's like any other language.

Thanks..
1,346
Posted By ENG_MOHD
Tcl:Very strange output!!
Hi,

I using tcl script to perform certain conditions. Part of the results should have average . I couldn't figure out what 's the cause as the result of the average is Zero.
Example of the...
1,462
Posted By ENG_MOHD
TCL script-open commands
Hi,

I have script to open a file through tcpdump program. However,
the script is not opening the file.


set lne [open "|tcpdump -r filename "]
....
while {[gets $lne line1] >=0} {
......
1,633
Posted By ENG_MOHD
Hi, Thank you for your reply.. I was waiting...
Hi,
Thank you for your reply.. I was waiting for an answer.

I'm not sure I understand what I'm suppose to change. Do you mean I need to change the " to new one? If yes, what is the new one?
...
1,633
Posted By ENG_MOHD
Execution error with awk script
Hi,

I run an awk script and I got the error attached below:
here are the lines that the compiler point to as an error:

duration = timeEnd1-timeBegin1;

print "Transmission: type of traffic "...
2,476
Posted By ENG_MOHD
TCL Script Regular expression
Hi ,
I'm working on tcl script to extract specific data . I tried to use regular expression (new to regular expression) but I couldn't get it.

here is a smaple of what I'm trying to extract...
1,398
Posted By ENG_MOHD
Yes, The numbers are number of occurrence of "d"...
Yes, The numbers are number of occurrence of "d" for each period of time for example (0.1-0.2)
so, if we calculate number of occurrence we can say " we have 5 "d" in period 0.2
and 10 "d" in 0.3...
Forum: Programming 02-19-2011
1,146
Posted By ENG_MOHD
Algorithm needs to be implemented in JAVA
Hi,

I need to implement this algorithm in JAVA. I tried to write half of the code But I stopped in the other half.

The algorithm:

Marking procedure at router R:
let R' = Bitlntereave(R,...
Showing results 1 to 25 of 34

 
All times are GMT -4. The time now is 12:23 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy