Can't get audio files to play as script
Posted: Thu Mar 31, 2011 9:20 pm
I have been trying to get an audio alert to play when a filter is triggered . Syslog shows the script is firing off, and I have verified it works manually, but when zonminder launches the script I get the following, and no audio:
Mar 31 16:05:12 linuxmint pulseaudio[6466]: core-util.c: Home directory /var/www not ours.
Mar 31 16:05:12 linuxmint pulseaudio[6466]: lock-autospawn.c: Cannot access autospawn lock.
Mar 31 16:05:12 linuxmint pulseaudio[6466]: main.c: Failed to acquire autospawn
The script is very simple:
#!/bin/bash
play sound.wav
Mar 31 16:05:12 linuxmint pulseaudio[6466]: core-util.c: Home directory /var/www not ours.
Mar 31 16:05:12 linuxmint pulseaudio[6466]: lock-autospawn.c: Cannot access autospawn lock.
Mar 31 16:05:12 linuxmint pulseaudio[6466]: main.c: Failed to acquire autospawn
The script is very simple:
#!/bin/bash
play sound.wav