About the script:
------------------------------------------
This script is helpful when we need to check the RAM status continuously. It will show the ram status in 2 -second interval.
Script:
!/usr/bin/env python
#RAM STATUS CHECKER
import sys
import subprocess
import time
starttime=time.time()
while True:
print "----------RAM STATUS------------"
subprocess.call(["free","-m"])
time.sleep(2)