hi all,
i'm new to CGI scripting.
I want to compute memory utilisation,
so when i run free command in my cgi scipt,
if memory is utlised more than 70%.
i want to display in free command in html as red color
free
total used free shared buffers cached
Mem: 16438364 15484884 953480 0 392996 9730932
-/+ buffers/cache: 5360956 11077408
Swap: 8385920 91092 8294828
else
I want to show it in green color
free
total used free shared buffers cached
Mem: 16438364 15484884 953480 0 392996 9730932
-/+ buffers/cache: 5360956 11077408
Swap: 8385920 91092 8294828