[mythtv-users] mythrename.pl fails when called from cron
mrand at pobox.com
Mon Nov 17 16:33:10 UTC 2008
On Mon, Nov 17, 2008 at 8:31 AM, Friedrich Clausen <fred at derf.nl> wrote:
> On Mon, Nov 17, 2008 at 3:22 PM, OCG Technical Support <support at ocg.ca> wrote:
>> My crontab is the standard:
>> # run-parts
>> 01 * * * * root run-parts /etc/cron.hourly
>> 02 4 * * * root run-parts /etc/cron.daily
>> 22 4 * * 0 root run-parts /etc/cron.weekly
>> 42 4 1 * * root run-parts /etc/cron.monthly
>> My script file is sitting in cron.daily
> Ah, I see. Yes, you need to do it differently - try add the following
> to /etc/crontab itself :
> @daily mythtv /usr/local/bin/myscript.sh
> Two notes about the above:
> * Replace "mythtv" with the user you run mythtv as - usually mythtv.
> * You will need to move your script out of /etc/cron.daily to another
> location - for example /usr/local/bin or to the mythtv user's home
> Then it may work as expected...
> [snip top-posting]
Related: by default, run-parts may not execute files for cron if the
filenames have certain characters (like periods!) in the file name.
The man page mentions this, as do bug reports in most of the
Linux-related bug trackers.
More information about the mythtv-users