#!/bin/bash
while :
do
/usr/bin/nice -n 19 /bin/cat /proc/meminfo | grep "MemFree:" >> /home/utcaadmin/mem.txt
/usr/bin/nice -n 19 /bin/cat /proc/meminfo | grep "Active:" >> /home/utcaadmin/mem.txt
/usr/bin/nice -n 19 /bin/cat /proc/meminfo | grep "Inactive:" >> /home/utcaadmin/mem.txt
/usr/bin/nice -n 19 /bin/echo . >> /home/utcaadmin/mem.txt
sleep 300
done
|