simple/memlog/memlog

8 lines
155 B
Plaintext
Raw Normal View History

1998-08-22 22:16:38 +02:00
#!/bin/sh
now=`/bin/date '+%Y-%m-%dT%H:%M:%S'`
egrep -i '^[a-z]+: +[0-9]+ kB$' /proc/meminfo |\
while read a
do
echo "$now $a"
done >> /var/log/memlog