Files
tc_ShellScripts_big_file/monitorMemory_while.sh

13 lines
197 B
Bash
Executable File

#!/bin/bash
while true
do
Mem=$(free -h | grep Mem)
time=$(date +%Y%m%d_%H%M%S)
txt=$time$Mem
echo $txt &>> /media/nvme/300TC/programRunLog/memoryUseage.txt
sleep 2
done