Group Selection Page HELP DOC Controls Group Data Analysis Group ITDM WP76 DET Vacuum XRO EEE WP78 WP74 FXE SCS SPB MID HED SQS SXP Sample Environment Photon Commissioning Team Operation PSPO XO TS
General electronics MicroTCA EEE Electronics Lab EEE Rack Room
  MicroTCA Logbook  Not logged in ELOG logo
Message ID: 40     Entry time: 19 Sep 2013, 11:24
Author: Frank Babies 
Type: Configuration 
Category: utca6 
Subject: utca6 script to read the memory size and wrote to a file 

#!/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

 

ELOG V3.1.4-7c3fd00