[mythtv-users] Can't run mythrename.sh from cron
Mark Wormgoor
mark at wormgoor.com
Fri Feb 13 19:24:13 UTC 2009
Hi
> I have a simple script to kick off mythrename. It's a file called
> mythrename.sh. It contains:
>
> #!/bin/bash
> perl
> /usr/share/doc/mythtv-docs-0.21/contrib/mythrename.pl --link --underscores
> --format '%T %- %S %- %Y%m%d%G%i%s'
Edit your script to read:
#!/bin/bash
export HOME=/root
perl
/usr/share/doc/mythtv-docs-0.21/contrib/mythrename.pl --link --underscores --format
'%T %- %S %- %Y%m%d%G%i%s'
As you can see in the error message, it's trying to open
//.mythtv/config.xml. Your home directory ought to be between those first
two slashes.
Kind regards,
Mark
More information about the mythtv-users
mailing list