LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] gnuplot question

[ILUG] gnuplot question

Kenn Humborg kenn at bluetree.ie
Thu Mar 9 17:05:19 GMT 2000


> the output from vmstat. i want nice little graphs of my memory and io
> activity over time.

Put the current time, or an index value or something at
the start of the line to use as an X co-ord.  Otherwise
gnuplot can't know where to plot the point.  The default
behaviour (x y1 y2 ... yN) will work for you then.

> i've got a tiny awk script which takes the output from vmstat, and sorts
> it out to different files, eg for the memory stats:
> 
> { print $4" "$5" "$6 >> "/tmp/memory" } ;\
> 
> then i have small gnuplot file (adapted from the lm_sensors scripts) to
> print graphs.
> PS: notice how i have to put a " " in between every variable in
> awk. Why? the OFS is set to be a space, yet without the " " i get:
> 
> 123456789
> 
> rather than 
> 
> 123 456 789..
> 
> why?

Because the space between $4 and $5 in {print $4 $5} is
a concatenation operator.

Kenn





More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell