LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-19-2015, 07:53 PM   #1
talk_2_tosin
LQ Newbie
 
Registered: Apr 2015
Posts: 14

Rep: Reputation: Disabled
What do I do with this huge data on my command line interface


Hi,

I have been trying to get information on how to process the output of a tcl file (aodv and leach protocol using mannasim) which I got on my command line Iinterface. Actually, I don't even know the keywords to search as I am new to this and other minor attempts haven't yielded positive results., I know there is usually a trace file but I can't see any. All I see is on my command line.

I also observe that it took the space on the entire screen and I can't copy the output from the start ( I could only copy from node 19 out of 30 nodes) because of the huge number of output lines.

The last thing I havent been able to figure ou is whether temperature is equivalent to energy Iin mannasim as mannasim has only temperature and carbon dioxide?


Thanks
 
Old 04-20-2015, 01:27 PM   #2
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,561

Rep: Reputation: 2127Reputation: 2127Reputation: 2127Reputation: 2127Reputation: 2127Reputation: 2127Reputation: 2127Reputation: 2127Reputation: 2127Reputation: 2127Reputation: 2127
If you want to dump the output of a command to a file instead of printing it on the screen, use ">". eg:
Code:
ls > file
I can't make heads or tails out of the rest of your post.
 
Old 04-26-2015, 03:24 AM   #3
talk_2_tosin
LQ Newbie
 
Registered: Apr 2015
Posts: 14

Original Poster
Rep: Reputation: Disabled
Thanks for the response, it was quite beneficial and I was able to get it into a file.

However, please I dont know the most appropriate trace analyzer to use as it seems different from other trace files I have seen. I already attempted to use trace graph.

This is a sample of what I got
The first part looks like this:

* Node 1 = 1 created in (24.69199808532931, 40.81560109779965, 0.0)
* Node 2 = 2 created in (72.50801342190617, 37.513115833286712, 0.0)
* Node 3 = 3 created in (74.934853555138631, 67.811206992627689, 0.0)

The second looks like this:
Node 10 - Temperature Data 18.368035 - Time 0.085450
Common Node 10 - Disseminating data - Time 0.085 - Destination node 0
Node 11 - Temperature Data 26.870198 - Time 0.085450
Common Node 11 - Disseminating data - Time 0.085 - Destination node 0

I am concerned about the best tool plotting the graph of the energy with respect to time.

Thanks
 
Old 04-26-2015, 11:39 AM   #4
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
I;d suggest using awk or perl to get the data into a simple two-column format (first column time and second column energy). Then you can use any number of plotting tools to make a graph. I use pyplot a lot myself, but it requires knowledge of Python. You could also use gnuplot, which is still fairly complex but does not require any real programming.
 
1 members found this post helpful.
Old 04-26-2015, 08:52 PM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,233

Rep: Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522
i am guessing that this is one of the ns2????? versions

What does your textbook have to say on this issue ?

for plotting
GNUplot

should be installed by default
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I need help with command line interface David Duro Linux - Newbie 2 01-28-2013 03:42 PM
Command Line Interface sameeruj Linux - Newbie 10 12-14-2011 05:06 PM
Command Line Interface sj061 Linux - Newbie 4 02-22-2007 02:48 AM
Can only use command line interface! The helpless one Linux - Newbie 6 03-12-2006 04:42 PM
My command line is huge, baby! dredgemortle Mandriva 14 03-10-2004 12:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration