Motion - Support Question 2016x 01x 29x 091235

Can't make motion do a simple beep (bel)

Question

Linux GP7-500 3.16.0-4-686-pae #1 SMP Debian 3.16.7-ckt20-1+deb8u3 (2016-01-17) i686 GNU/Linux motion Version 3.2.12+git20140228

Fresh Debian 8 server without GUI, on old Pentium III 500 MHz, with 3 cameras. Runs great but I can not get it to beep "on_movie_start". I've tried from a script and from the tread*.conf files directly. '/bin/echo -ne "\007" > /dev/console' '/usr/bin/tput bel > /dev/console' 'printf "\a" > /dev/consloe' The script does work when run as root! Permissions on script set to: root:motion 770 I also tried adding 'motion' to group 'audio' without success. Any pointers would be appreciated!

Can't make motion do a simple beep (bel)

<!-- Do not edit title above. Edit the TopicTitle field in the form at the bottom -->

Question

Linux GP7-500 3.16.0-4-686-pae #1 SMP Debian 3.16.7-ckt20-1+deb8u3 (2016-01-17) i686 GNU/Linux motion Version 3.2.12+git20140228

Fresh Debian 8 server without GUI, on old Pentium III 500 MHz, with 3 cameras. Runs great but I can not get it to beep "on_movie_start". I've tried from a script and from the tread*.conf files directly. '/bin/echo -ne "\007" > /dev/console' '/usr/bin/tput bel > /dev/console' 'printf "\a" > /dev/consloe' The script does work when run as root! Permissions on script set to: root:motion 770 I also tried adding 'motion' to group 'audio' without success. Any pointers would be appreciated!


cat on_movie_start-cam1.sh
#!/bin/bash
# on_movie_end-cam1.sh
# 2016-01-28

#PATH=/bin:/usr/bin
PATH=/usr/sbin:/usr/bin:/sbin:/bin

Output=$(date '+%b %e %_R:%S ')
Output+="on_movie_start-cam1.sh "
Output+="BEEP?"
echo "$Output" >> /var/log/motion.log

# on_movie_start then beep.
# tried all of the following:
'/bin/echo -ne "\007" > /dev/console'
'/usr/bin/tput bel > /dev/console'
'printf "\a" > /dev/consloe'
exit

Environment

Motion version: 3.2.12+git20140228
ffmpeg version:  
Libraries: ffmpeg, mysql, postgresql
Server OS: SMP Debian 3.16.7-ckt20-1+deb8u3 (2016-01-17) i686 GNU/Linux
-- JonBaker - 29 Jan 2016

Answer

<verbatim>
cat on_movie_start-cam1.sh </verbatim> <pre>#!/bin/bash<br /># on_movie_end-cam1.sh<br /># 2016-01-28<br /><br />#PATH=/bin:/usr/bin<br />PATH=/usr/sbin:/usr/bin:/sbin:/bin<br /><br />Output=$(date '+%b %e %_R:%S ') <br />Output+="on_movie_start-cam1.sh "<br />Output+="BEEP?"<br />echo "$Output" &gt;&gt; /var/log/motion.log<br /><br /># on_movie_start then beep.<br />/bin/echo -ne "\007"<br />/usr/bin/tput bel &gt; /dev/console<br />exit<br /><br /><br /><br /></pre> <verbatim>
exit

...Directly in thread*.conf, tried all the above.
on_movie_start 'printf "\a" > /dev/console'

</verbatim>

Environment

Motion version: 3.2.12+git20140228
ffmpeg version:  
Libraries: ffmpeg, mysql, postgresql
Server OS: SMP Debian 3.16.7-ckt20-1+deb8u3 (2016-01-17) i686 GNU/Linux
-- JonBaker - 29 Jan 2016

Answer

Topic revision: r1 - 29 Jan 2016, JonBaker
Copyright © 1999-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Please do not email Kenneth for support questions (read why). Use the Support Requests page or join the Mailing List.
This website only use harmless session cookies. See Cookie Policy for details. By using this website you accept the use of these cookies.