[mythtv-users] Bash Script help please

Tobbe mythtv at palatset.net
Tue Oct 10 20:00:04 UTC 2006


>> /usr/local/bin/pdatranscode /video 1036_20061010144800.mpg Law & Order
>> 20061010144800

 Looks like you need to escape the "&" or put " " between the variables.
 Just a guess.

 Like
 /usr/local/bin/pdatranscode /video 1036_20061010144800.mpg Law \& Order

 and
 /usr/local/bin/pdatranscode /video 1036_20061010144800.mpg "Law & Order"

 or "&" will tell sh to run it in the backround...

 Tobias



 ----- Original Message ----- 
> From: "Jon Larson" <jtlarson at u.washington.edu>
> To: "Discussion about mythtv" <mythtv-users at mythtv.org>
> Sent: Tuesday, October 10, 2006 9:48 PM
> Subject: Re: [mythtv-users] Bash Script help please
>
>
>>
>> Jeff volckaert wrote:
>>>> I haven't been following the whole thread, but is there any reason
>>>> you're not using mythrename.pl in the contrib folder? Seems to do
>>>> exactly what you want. With the right flags, you can format the name
>>>> how you like and make symlinks of the pretty names that link to the
>>>> default myth names.
>>> I've seen reference to that in the past, but I'm trying to make a copy
>>> of the original.  I'm not sure that the rename script would do that
>>> unless it changed the filename in the backend.
>>>
>>> I think the problem is not in the script, but in Myth passing the
>>> title to the script.  I've been intentionally picking shows with an &
>>> in the name.  I think Myth is running:
>>>
>>> /usr/local/bin/pdatranscode /video 1036_20061010144800.mpg Law & Order
>>> 20061010144800
>>>
>>> and the Linux is looking for an Order command.
>>>
>>> Here's a chunk from my log:
>>>
>>> 2006-10-10 15:03:48.099 JobQueue: Started "PDA Transcode" for "Law &
>>> Order" recorded from channel 1036 at Tue Oct 10 14:48:00 2006
>>> sh: Order: command not found
>>>
>>> Is this a bug?  Is there a different way to get TITLE minus the '&'?
>>>
>>> Thanks,
>>> Jeff
>>> _______________________________________________
>>> mythtv-users mailing list
>>> mythtv-users at mythtv.org
>>> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>>
>> I'd suggest consulting the myth2ipod script for ideas. It has a section 
>> about half way down that does exactly this. In fact, I already use it to 
>> make videos (and a separate version for mp3s) that I can watch on my 
>> iPaq, so you might just consider using/modifying that script instead.
>>
>> For my purposes, I modified it to generate a separate RSS feed for each 
>> title, but there's no reason you couldn't just comment the RSS section 
>> out if you don't want it.
>>
>> Jon
>>
>>
>>
>>
>> _______________________________________________
>> mythtv-users mailing list
>> mythtv-users at mythtv.org
>> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>>
>> -- 
>> This message has been scanned for viruses and
>> dangerous content by MailScanner, and is
>> believed to be clean.
>>
> 



More information about the mythtv-users mailing list