[mythtv-users] Is there an easy way to run script just after a recording finishes
Wayne Thomas
waynethomas69 at gmail.com
Thu Jun 2 19:38:23 UTC 2011
On Thu, Jun 2, 2011 at 9:17 PM, Ronald Frazier <ron at ronfrazier.net> wrote:
> On Mon, May 30, 2011 at 8:22 PM, Michael T. Dean
> <mtdean at thirdcontact.com> wrote:
> >>> I would like to lock the box during the channel
> >>> change script it unlock it once the recording has finished.
>
> >> Use the System Events subsystem to trigger the calls on recording
> >> start/end.
>
> One potential issue I can think of is a race condition when there are
> 2 recordings back to back. Is there any guarantee of ordering of these
> myth events? Will the finished-recording event be triggered and
> allowed to complete before the next recording starts and the
> start-recording event is triggered? If not, then you can end up with
> the situation where myth calls the channel change script before the
> unlock script has completed, and thus the channel never changes. You
> can work around this by making sure you unlock before changing a
> channel, but then if they complete out of order, the channel change
> script could unlock, change channel, and relock, and then the
> finished-recording script unlocks it again a second later.
>
> Given that they are trying to control an external box, surely there will
never be two recordings programmed at the same time (assuming that the box
can only output one channel at a time).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.mythtv.org/pipermail/mythtv-users/attachments/20110602/695e2034/attachment.html
More information about the mythtv-users
mailing list