[mythtv-users] mirobridge cron and ubuntu 9.10
Jack McGee
jack at greendesk.net
Fri Mar 19 17:42:36 UTC 2010
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?
thanks
More information about the mythtv-users
mailing list