<br><br><div class="gmail_quote">On Fri, Apr 1, 2011 at 8:32 AM, Raymond Norton <span dir="ltr"><<a href="mailto:admin@lctn.org">admin@lctn.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div 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></div></blockquote><div><br><br>You can tweak the environment of a cron job by setting env vars before the invocation. <br><br>i.e., HOME=/desired/homedir '/usr/local/sbin/alert /usr/share/zoneminder/events/12/6454'<br>
<br>Give it a whirl and see if it works.<br><br>-Rob<br><br></div></div>