[mythtv-users] mythlink.pl

Klaus Becker colonius at free.fr
Mon Jun 11 14:17:49 UTC 2018


Le dimanche 10 juin 2018, 16:38:33 CEST Greg a écrit :
> On 06/10/2018 09:39 AM, Klaus Becker wrote:
> > Le dimanche 10 juin 2018, 14:10:25 CEST John Pilkington a écrit :
> >> On 10/06/18 12:43, Klaus Becker wrote:
> >>> Le dimanche 10 juin 2018, 13:21:19 CEST Stephen Worthington a écrit :
> >>>> In Ubuntu, the package is libmythtv-perl.  It contains the MythTV Perl
> >>>> bindings.
> >>> 
> >>> I installed libmythtv-perl (in Debian) , but there is still a problem:
> >>> 
> >>> 
> >>> $ ./mythlink.pl --link /home/klaus/...
> >>> DBI
> >>> connect('database=mythconverg:host=127.0.0.1;port=3306','mythtv',...)
> >>> failed: Access denied for user 'mythtv'@'localhost' (using password:
> >>> YES)
> >>> at / usr/share/perl5/MythTV.pm line 375.
> >>> Cannot connect to database:
> >>> 
> >>> However db is running and I can use the frontend for example.
> >>> 
> >>> Klaus
> >> 
> >> A pure guess, but have you tried stopping and restarting the backend?
> >> 
> >> John
> > 
> > No, I avoid that because I know it can create problems.
> > 
> > Klaus
> > 
> > 
> > _______________________________________________
> > mythtv-users mailing list
> > mythtv-users at mythtv.org
> > http://lists.mythtv.org/mailman/listinfo/mythtv-users
> > http://wiki.mythtv.org/Mailing_List_etiquette
> > MythTV Forums: https://forum.mythtv.org
> 
> I use 2 scripts to run mythlink..... The first I call link.sh the second
> is the mythlink.pl script ..  link.sh executes mythlink.pl and contains
> all the information needed to place the symlinks in the proper folder
> with season and episode.
> This is the contents of link.sh      #!/bin/sh
>                                                        /usr/bin/perl
> /home/greg/mythlink.pl --link /video7/mythtv/pretty --format "%T/%T -
> S%ssE%ep - %S"
> 
> I place both scripts in the root folder of the user that runs mythtv (in
> my case greg) You will have to change the paths too where you want the
> symlinks placed. Mine goes into /video7/pretty.. You must elevate the
> permissions and make both scripts executable by your user... I have been
> using this method for as long as I've run Mythtv...
> I also run the link.sh in a cron job every half hour to update any
> recordings and remove the dead links..

How do you remove the dead links ?

Could you send me your cron script ?

Klaus




More information about the mythtv-users mailing list