[Dxspider-support] crontab not honouring LOCALE = LOCAL
IZ2LSC
iz2lsc.andrea at gmail.com
Fri Apr 11 17:51:21 BST 2025
crontab is this
LOCALE = LOCAL
47 18 * * * run_cmd('load/badip')
-->
On Fri, Apr 11, 2025 at 6:50 PM IZ2LSC <iz2lsc.andrea at gmail.com> wrote:
> ops.....I was not aware of that param.
>
> Here is working fine
>
> 11Apr2025 at 16:47:00 (cron) cron: LOCALTIME 47 18 11 4 5 -> doing
> 'run_cmd('load/badip')'
> 11Apr2025 at 16:47:00 (cron) DXCron::run_cmd: load/badip
> 11Apr2025 at 16:47:00 (cron) DXCron::cmd out: load/badip: added 9205 entries
>
> UTC time is 16:47
> Local time is 18:47
>
> Andrea
>
> -->
>
>
> On Fri, Apr 11, 2025 at 3:40 PM Keith, G6NHU <g6nhu at me.com> wrote:
>
>> That’s not how I read it from Changes:
>>
>> 3. Add the ability to set the (time) locale to UTC or LOCALTIME by adding
>> the string LOCALE = UTC or LOCALE = LOCAL(TIME)? to your local crontab
>>
>> NOTE: this will affect ALL timings in both the system as well as your
>> local crontabs. Changing the LOCALE will make no difference to the
>> system
>> crontab other than using localtime rather than UTC. Which is fine by
>> me.
>> On 11 Apr 2025 at 14:32 +0100, IZ2LSC via Dxspider-support <
>> dxspider-support at tobit.co.uk>, wrote:
>>
>> "LOCALE = LOCAL" is just for setting the format of text, numbers, date,
>> not for the timezone.
>> In addition I think that the spider crontab is a little different from
>> the system crontab, i.e. the */n schedule notation is not working.
>>
>> a.
>>
>>
>> -->
>>
>>
>> On Fri, Apr 11, 2025 at 11:32 AM Keith, G6NHU via Dxspider-support <
>> dxspider-support at tobit.co.uk> wrote:
>>
>>> Yup, correct, I’ve asked for local time.
>>>
>>> So when the crontab time says run something at 22:42, I expect it to run
>>> at 22:42 local time, whereas it ran at 23:42.
>>>
>>> 73 Keith.
>>> On 11 Apr 2025 at 09:05 +0100, Dirk Koopman via Dxspider-support <
>>> dxspider-support at tobit.co.uk>, wrote:
>>>
>>> I’d forgotten it could do that. I’ll check the code when I get back
>>> home, but you have asked for local time, rather than UTC which is the
>>> default.
>>>
>>> Dirk G1TLH
>>>
>>> On 11 Apr 2025, at 08:51, Keith, G6NHU via Dxspider-support <
>>> dxspider-support at tobit.co.uk> wrote:
>>>
>>>
>>> I have LOCALE = LOCAL in my crontab.
>>>
>>> I have Kin’s update script set to run at 22:42
>>>
>>> 42 22 * * 1,2,3,4,5 run_cmd("check_build Y 5")
>>>
>>> However, it ran and updated last night at 23:42
>>>
>>> I can see other files that I download using crontab appear to be an hour
>>> out as well.
>>>
>>> 73 Keith.
>>>
>>>
>>> _______________________________________________
>>> Dxspider-support mailing list
>>> Dxspider-support at tobit.co.uk
>>> https://mailman.tobit.co.uk/mailman/listinfo/dxspider-support
>>>
>>> _______________________________________________
>>> Dxspider-support mailing list
>>> Dxspider-support at tobit.co.uk
>>> https://mailman.tobit.co.uk/mailman/listinfo/dxspider-support
>>>
>>> _______________________________________________
>>> Dxspider-support mailing list
>>> Dxspider-support at tobit.co.uk
>>> https://mailman.tobit.co.uk/mailman/listinfo/dxspider-support
>>>
>> _______________________________________________
>> Dxspider-support mailing list
>> Dxspider-support at tobit.co.uk
>> https://mailman.tobit.co.uk/mailman/listinfo/dxspider-support
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.tobit.co.uk/pipermail/dxspider-support/attachments/20250411/02e7950c/attachment-0001.htm>
More information about the Dxspider-support
mailing list