<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
The error about /var/www not being the home directory is because the
script is launched by the www-data user. <br>
<br>
I have tried changing group membership, etc, but still get this
error:<br>
<br>
<br>
Apr 1 08:18:21 linuxmint zmfilter[15681]: INF [Executing
'/usr/local/sbin/alert /usr/share/zoneminder/events/12/6454']<br>
Apr 1 08:18:21 linuxmint pulseaudio[15687]: core-util.c: Home
directory /var/www not ours.<br>
Apr 1 08:27:28 linuxmint pulseaudio[15862]: lock-autospawn.c:
Cannot access autospawn lock.<br>
Apr 1 08:27:28 linuxmint pulseaudio[15862]: main.c: Failed to
acquire autospawn lock<br>
<br>
<b></b><br>
<br>
On 03/31/2011 02:04 PM, Carl Wilhelm Soderstrom wrote:
<blockquote cite="mid:20110331140412.I29943@real-time.com"
type="cite">
<pre wrap="">On 03/31 01:56 , Raymond Norton wrote:
</pre>
<blockquote type="cite">
<pre wrap=""> 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.
</pre>
</blockquote>
<pre wrap="">
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.
</pre>
</blockquote>
</body>
</html>