(1)set-timezone Asia/Shanghai; (2)wait some seconds for dji to set time;(3)add: monitorMemory_while.sh;
This commit is contained in:
@ -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
|
||||
|
@ -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
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