(1)set-timezone Asia/Shanghai; (2)wait some seconds for dji to set time;(3)add: monitorMemory_while.sh;
This commit is contained in:
12
monitorMemory_while.sh
Executable file
12
monitorMemory_while.sh
Executable file
@ -0,0 +1,12 @@
|
||||
#!/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
|
||||
|
Reference in New Issue
Block a user