The error about /var/www not being the home directory is because the 
script is launched by the www-data user.

I have tried changing group membership, etc, but still get this error:


Apr  1 08:18:21 linuxmint zmfilter[15681]: INF [Executing 
'/usr/local/sbin/alert /usr/share/zoneminder/events/12/6454']
Apr  1 08:18:21 linuxmint pulseaudio[15687]: core-util.c: Home directory 
/var/www not ours.
Apr  1 08:27:28 linuxmint pulseaudio[15862]: lock-autospawn.c: Cannot 
access autospawn lock.
Apr  1 08:27:28 linuxmint pulseaudio[15862]: main.c: Failed to acquire 
autospawn lock

**

On 03/31/2011 02:04 PM, Carl Wilhelm Soderstrom wrote:
> On 03/31 01:56 , Raymond Norton wrote:
>>    I'm trying to get an alert sound file to play via the command line
>> when an alarm is tripped. It works when I am manually fire of the script
>> at the counsel, and I can see the script called in syslog when the alarm
>> is tripped, but do not get any sound then.
>>
>> When I used mplayer to play the file I would get pulseaudio errors about
>> /var/www not being the home directory.
> try running the command from 'cron' owned by the user who runs the alarm
> software.
>
> Make sure that user has permission to access the audio devices.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.mn-linux.org/pipermail/tclug-list/attachments/20110401/bb14c3e7/attachment.html>