I have used /proc/meminfo and parsed command response.however it ... Thank you. Its done and it works ! Let me tell you what I did, So others ...
stackoverflow.com