[mythtv-users] Events at the beginning of a recording

Ian Cameron mkbloke at gmail.com
Tue Jan 24 20:08:06 UTC 2023


On Tue, 24 Jan 2023 at 19:46, Ian Cameron <mkbloke at gmail.com> wrote:

> ME="$(/usr/bin/basename ${0})"
> TIME_SECS=${1}
> if [ ${TIME_SECS} -gt 35 ]
> then
>   echo "${ME}: time to programme start ${TIME_SECS}; exiting" \
>     >> /some/path/recording_pending.log
>   exit
> fi
> # put channel change stuff here
>

Oops, it should be "if [ $TIME_SECS -lt 35 ]", above for what I described.
Also, for using the ~60s event, rather than a semaphore file, you could use:

if [ $TIME_SECS -gt 35 -a $TIME_SECS -lt 65 ]

Cheers, Ian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20230124/3151da5d/attachment.htm>


More information about the mythtv-users mailing list