[mythtv-users] mythlink User Job Help

Mark Gardner Mark at thegardners.me.uk
Mon Jan 14 18:25:45 UTC 2013


________________________________

From: mythtv-users-bounces at mythtv.org on behalf of Michael T. Dean
Sent: Sun 13/01/2013 22:43
To: Discussion about MythTV
Subject: Re: [mythtv-users] mythlink User Job Help



On 01/13/2013 03:55 PM, Mark Gardner wrote:
> Hello,
>
> Can anyone please help me understand why command 1 works from the
> command line but command 2 (modified with chanid and starttime) does not
> run when set as a User Job?
>
> 1 - /usr/share/doc/mythtv-backend/contrib/user_jobs/mythlink.pl --link
> /home/mark/MythRecs --format '\%T/\%T-\%Y\%m\%d-\%H\%i-\%S-\%cN'
>
> 2 - /usr/share/doc/mythtv-backend/contrib/user_jobs/mythlink.pl --link
> /home/mark/MythRecs --chanid %CHANID% --starttime %STARTTIME% --format
> '\%T/\%T-\%Y\%m\%d-\%H\%i-\%S-\%cN'
>
> Is there somewhere I can look (log file) to find out why its not
> working?
>

Escaping is very difficult to get right--and hard-coding commands into
User Jobs makes it hard to modify/enhance those commands.  My
recommendation is to create a script that runs the appropriate
mythlink.pl command(s).  See, for example, what I do:

http://www.gossamer-threads.com/lists/mythtv/users/531841#531841

Mike
_______________________________________________
mythtv-users mailing list
mythtv-users at mythtv.org
http://www.mythtv.org/mailman/listinfo/mythtv-users


Mike - that script looks great. I will give it a go. Thanks! Mark.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 4314 bytes
Desc: not available
URL: <http://www.mythtv.org/pipermail/mythtv-users/attachments/20130114/9cac9494/attachment.bin>


More information about the mythtv-users mailing list