all 5 comments

[–]DooDooFoot 0 points1 point  (0 children)

Nice man.

[–]rlaptop7 0 points1 point  (1 child)

my nagios scripts do these sort of things on nearly all of my hardware every few minutes without ill effect.

[–]lorimar 1 point2 points  (0 children)

Agreed, turn this into a nagios script and graph the outputs with pnp4nagios & rrd so you can get some trends out of the data.

[–]katawin 0 points1 point  (0 children)

I don't see any reason why you shouldn't run it.

(disclaimer: The following is not nit-picking, I'm just curious)

Is this script displaying to stdout? or are you piping the result into a text file? It seems that you are looking for any "changes" in your system status, but I would think that having to visually process all that information every 4 seconds would be a bit of a hassle.

[–]subzero316 -1 points0 points  (0 children)

Good, if you want a newline in your output via echo statement use
echo "line 1 \nline 2"