[mythtv-users] (Myth) Archive to hard disk

Ma Begaj derliebegott at gmail.com
Wed Jun 27 11:12:26 UTC 2007

>> Is there a howto for making a script which can be stopped from the menu?
> No.  Basically your script has to query the jobqueue table in the
> database every so often and check the cmds column to see if the
> value in that column is non-zero.  These values are defined in jobqueue.h:
> enum JobCmds {
>     JOB_RUN          = 0x0000,
>     JOB_PAUSE        = 0x0001,
>     JOB_RESUME       = 0x0002,
>     JOB_STOP         = 0x0004
> };
> So if the cmds value is 4 then your script should stop itself.  If it
> is 1 then it should pause and then check again every so often until it
> gets a 2 telling it to resume.

great ... thanks for the information. very useful.


More information about the mythtv-users mailing list