[mythtv-users] mirobridge cron and ubuntu 9.10

Nick Rout nick.rout at gmail.com
Sat Mar 20 00:01:11 UTC 2010


On Sat, Mar 20, 2010 at 6:42 AM, Jack McGee <jack at greendesk.net> wrote:
> On 3/18/2010 10:45 PM, Nick Rout wrote:
>>
>> On Fri, Mar 19, 2010 at 3:45 PM, Jack McGee<jack at greendesk.net>  wrote:
>>
>>>
>>> I can run mirobridge just fine from terminal.
>>>
>>> It does not work from cron.
>>>
>>> This is the cron line:
>>>
>>> 45 * * * * env `dbus-launch` sh -c 'trap "kill $DBUS_SESSION_BUS_PID"
>>> EXIT;
>>> /usr/share/doc/mythtv-backend/contrib/imports/mirobridge/mirobridge.py
>>> -V>>
>>> "/tmp/mirobridge.log" 2>&1
>>>
>>
>> cron does not necessarily have your usual environment. Try giving full
>> paths to all the commands.
>>
>
>
> I changed the cron line to:
>
> 10 * * * * env `/usr/bin/dbus-launch` sh -c 'trap "kill
> $DBUS_SESSION_BUS_PID" EXIT;
> /usr/share/doc/mythtv-backend/contrib/imports/mirobridge/mirobridge.py -Vt
>>> "/tmp/mirobridge.log" 2>&1
>
> It still does not log anything.  Not sure I gave full path to all the
> commands.  Are you talking about the cron line, or the script?  If the cron
> line, what else needs a full path?


perhaps kill?
trap is a bash builtin so shouldn't need a full path.


More information about the mythtv-users mailing list