[mythtvnz] Script help please
Steve Holdoway
steve at greengecko.co.nz
Mon Jan 6 06:07:50 GMT 2014
On Mon, 2014-01-06 at 18:45 +1300, tortise wrote:
> Hi
> I'm trying to run a script from crontab -e with
>
> * * * * * /home/user1/cronping.sh
> * * * * * /home/user1/mythlinks.sh
>
> from the tab.
>
> syslog shows each is being called each minute, however only cronping
> seems to run.
>
> mythlinks.sh is:
> #!/bin/bash
>
> /usr/share/doc/mythtv-backend/contrib/user_jobs/mythlink.pl --link
> /var/www/mythlinks --format '%T/%T - %Y%m%d-%H%i -%S'
> /usr/share/doc/mythtv-backend/contrib/user_jobs/mythlink.pl --link
> /var/www/mythlinksall --format '%T - %Y%m%d-%H%i -%S'
> /usr/share/doc/mythtv-backend/contrib/user_jobs/mythlink.pl --link
> /var/www/mythlinksalldate --format '%Y%m%d-%H%i - %T -%S'
>
> sudo /home/user1/mythlinks.sh runs fine.
>
> I've been running mythlinks.sh here every minute for testing purposes,
> but when its working I will knock it back to hourly.
>
> What am I missing? How can I debug this further as mythlinks.sh won't
> run from the crontab, which is what I am seeking.
>
If it only runs with sudo, then it needs to be in the root cron, not
user1's which is where crontab -e will get you to. sudo crontab -e might
work? I'm a luddite and just log in as root so can't confirm or not.
hth,
Steve
--
Steve Holdoway BSc(Hons) MIITP
http://www.greengecko.co.nz
Linkedin: http://www.linkedin.com/in/steveholdoway
Skype: sholdowa
More information about the mythtvnz
mailing list