[mythtv-users] mythlink User Job Help
Andre Ross
andre.ross at sbcglobal.net
Mon Jan 14 17:02:47 UTC 2013
Don't use the escaping try using double quotes around each part of the command
This also helps if you have spaces
try:
/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"
I like to use the file name from program if possible
you can try:
/usr/share/doc/mythtv-backend/contrib/user_jobs/mythlink.pl
--link
"/home/mark/MythRecs"
--filename "%FILE%"
--format "%T/%T-%Y%m%d-%H%i-%S-%cN"
--separator "#"
The --separator seems to help with if you find extra spaces created in the link names.
also search on this form for mythlink.pl for season and episode number
if you need to add season and episode to your output links.
let me know if that helps
Andre
----- Original Message -----
From: Michael T. Dean <mtdean at thirdcontact.com>
To: Discussion about MythTV <mythtv-users at mythtv.org>
Cc:
Sent: Sunday, January 13, 2013 4:43 PM
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
More information about the mythtv-users
mailing list