On Fri, Apr 1, 2011 at 8:32 AM, Raymond Norton <admin at lctn.org> wrote:

>  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
>


You can tweak the environment of a cron job by setting env vars before the
invocation.

i.e.,  HOME=/desired/homedir '/usr/local/sbin/alert
/usr/share/zoneminder/events/12/6454'

Give it a whirl and see if it works.

-Rob
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.mn-linux.org/pipermail/tclug-list/attachments/20110401/78508c54/attachment.html>