[mythtv-users] User Job to rip subtitles from each program
Raymond Wagner
raymond at wagnerrp.com
Fri Feb 3 22:34:19 UTC 2012
On 2/3/2012 17:19, David Crawford wrote:
>
>
> On 3 February 2012 22:17, Raymond Wagner <raymond at wagnerrp.com
> <mailto:raymond at wagnerrp.com>> wrote:
>
> In the case of the jobqueue, it currently passes everything
> through the
> Bourne shell (/bin/sh), but the end result would be the same.
>
>
> Wouldnt that prevent the other script from not working also?
The Bourne shell is merely told to run the command as given by a
string. It splits the string up into arguments based off quotation and
escaping, and then calls it using execv(). The arguments of importance
are the ones in whatever the last execv() call is, before making it into
the proper interpreter and your script. In the case of the jobqueue,
jobs are only routed through Bourne as a means of "cheating", using the
shell to split apart the arguments and manage IO redirection rather than
re-implementing such things internally.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.mythtv.org/pipermail/mythtv-users/attachments/20120203/e83c160f/attachment.html
More information about the mythtv-users
mailing list