(1)set-timezone Asia/Shanghai; (2)wait some seconds for dji to set time;(3)add: monitorMemory_while.sh;

This commit is contained in:
tangchao
2022-12-16 18:28:21 +08:00
parent 76554ef64c
commit 441b422224
3 changed files with 17 additions and 1 deletions

View File

@ -8,7 +8,8 @@ sudo mkdir /home/300tc/library_source
sudo mkdir /home/300tc/library
cd /home/300tc
#timedatectl | grep Time
timedatectl set-timezone "Asia/Shanghai"
#
sudo apt update

View File

@ -14,6 +14,8 @@
#sleep 60s #rockpi need sleep 180s when start because if not wired lan which psdk's image transmission use don't work normal.
echo "current time is " $(date)
echo "the current directory is " $(pwd)
LogDirectory=/media/nvme/300TC/programRunLog
@ -61,6 +63,7 @@ fi
# run ximea program
sleep 100s # wait for dji to set time
cd $LogDirectory
if [ ! -e hyperspectralLog ]; then
sudo mkdir hyperspectralLog

12
monitorMemory_while.sh Executable file
View 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