i'm trying to configure motion in raspbian.
All works good but i have some problems with on_movie_end, this is the command:
this is a script that upload a video in my dropbox account. This is the content
#!/bin/bash echo "start upload" >> /home/pi/motion/drop/log.txt sudo -u pi /home/pi/motion/drop/dropbox_uploader.sh upload /home/pi/motion/detected/02-25042020212043.mp4 test7.mp4 >> /home/pi/motion/drop/log.txt 2>&1 echo "end upload" >> /home/pi/motion/drop/log.txt
and this the content of the log file
start upload We trust you have received the usual lecture from the local System Administrator. It usually boils down to these three things: #1) Respect the privacy of others. #2) Think before you type. #3) With great power comes great responsibility. sudo: no tty present and no askpass program specified end upload
from the command line /home/pi/motion/drop/dropupl.sh works, uploads the video on dropbox and it writes on the log file.
But when a motion is detected it writes on the log file but it 'skip' the line with the command and it doesn't upload the video on dropbox.
How can i fix this?