Server Crashes While Loading EPG Data

Sorry - i just realized the script is not writing to a file. So if the system crashes out - it is lost

Se the following variation

#!/bin/sh
while sleep 1m
do
now=$(date +"%D %T")
mem=$(ps -p $1 -o drs=)
echo $now "," $mem "\n" >> mem_snapshots.log
done

This will append to a file as it goes along.