(1)修改了300tc的守护进程(2)创建环境脚本:安装crontab和完善psdk编译
This commit is contained in:
@ -18,14 +18,14 @@ echo "the current directory is " $(pwd)
|
||||
|
||||
|
||||
|
||||
if [ ! -e /home/rock/programRunLog ]; then
|
||||
mkdir /home/rock/programRunLog
|
||||
if [ ! -e /home/programRunLog ]; then
|
||||
sudo mkdir /home/programRunLog
|
||||
else
|
||||
echo directory "~/programRunLog" exist!
|
||||
echo directory "/home/programRunLog" exist!
|
||||
fi
|
||||
|
||||
|
||||
cd /home/rock/programRunLog
|
||||
cd /home/programRunLog
|
||||
|
||||
echo "the current directory is " $(pwd)
|
||||
|
||||
@ -34,7 +34,7 @@ echo "the current directory is " $(pwd)
|
||||
|
||||
# run psdk program
|
||||
if [ ! -e djiLog ]; then
|
||||
mkdir djiLog
|
||||
sudo mkdir djiLog
|
||||
else
|
||||
echo directory "djiLog" exist!
|
||||
fi
|
||||
@ -49,8 +49,9 @@ bool=`ps -ef | grep psdk_demo | grep -v grep | wc -l`
|
||||
|
||||
if [ $bool -eq 0 ] ; then
|
||||
psdkLogFileName=$(date +%Y%m%d_%H%M_%S).dji_log
|
||||
sudo /bin/echo $(/bin/date +%F_%T) >> /home/rock/programRunLog/djiLog/runtime.log
|
||||
sudo /home/rock/tc_projects/Payload_SDK_V2.2.1_300tc/sample/platform/linux/manifold2/project/build/psdk_demo &> djiLog/$psdkLogFileName &
|
||||
sudo /bin/echo $(/bin/date +%F_%T) >> /home/programRunLog/djiLog/runtime.log
|
||||
|
||||
sudo /home/300tc/projects/psdk/psdk_demo &> djiLog/$psdkLogFileName &
|
||||
|
||||
echo "Now, start run dji program!"
|
||||
else
|
||||
@ -61,7 +62,7 @@ fi
|
||||
|
||||
# run ximea program
|
||||
if [ ! -e hyperspectralLog ]; then
|
||||
mkdir hyperspectralLog
|
||||
sudo mkdir hyperspectralLog
|
||||
else
|
||||
echo directory "hyperspectralLog" exist!
|
||||
fi
|
||||
@ -74,7 +75,7 @@ if [ $procnum -eq 0 ] ; then
|
||||
|
||||
echo $fileName
|
||||
|
||||
sudo /home/rock/tc_projects/ximeaImageRecorder/build/ximeaImageRecorder &> hyperspectralLog/$fileName &
|
||||
sudo /home/300tc/projects/ximeaAirborneSystem/ximeaAirborneSystem &> hyperspectralLog/$fileName &
|
||||
|
||||
echo "Now, start run hyperspectral program!"
|
||||
else
|
||||
|
Reference in New Issue
Block a user