Commit 616fc076 authored by Martin Cífka's avatar Martin Cífka
Browse files

Added output loggin to file /tmp/SD0/miphoto-exec.log

parent 0c1ca570
Loading
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -33,7 +33,6 @@ if [ "$build" = true ] ; then

    sudo docker build -t mi_camera_sdk .
    sudo docker run -it --rm -v "$PWD":/workdir mi_camera_sdk bash -c "arm-linux-gnueabihf-c++ -std=c++17 -static-libstdc++ -I src/ArduinoJson -o /workdir/$outfile $sources"
    #sudo docker run -it --rm -v "$PWD":/workdir mi_camera_sdk bash -c "arm-linux-gnueabihf-c++ -std=c++17 -I src/ArduinoJson -o /workdir/$outfile $sources"
    echo -e "\n"
fi

+6 −3
Original line number Diff line number Diff line
@@ -29,10 +29,13 @@ send -- "chmod +x $filepath\r"
expect -exact "chmod +x $filepath\r
~ # "

send -- "echo -e \"\\n\\n*****\" \$(date \"+%Y-%m-%d %H:%M\") \"*****\" >>/tmp/SD0/miphoto-exec.log\r"
expect -exact "echo -e \"\n\\n*****\" \$(date \"+%Y-%m-%d %H:%M\") \"*****\" >>/tmp/SD0/miphoto-exec.log\r
~ # "

send -- "$filepath\r"
expect -exact "$filepath\r"

send -- "$filepath 2>&1 | tee -a /tmp/SD0/miphoto-exec.log\r"
expect -exact "$filepath 2>&1 | tee -a /tmp/SD0/miphoto-exec.log\r
~ # "

#send -- "exit\r"
#expect eof