.lmt — Timers | LMX

LMX // .LMT

.lmtTimers

after/every time blocks that dispatch other scripts (experimental).

  • Operator only
  • a .lmt file
  • free to run
WHAT IT IS

Why .lmt exists.

Schedules after <d> do … end / every <d> do … end blocks that spawn inner interpreters. Long-running by nature (bounded by the run timeout here). Experimental; admin-only, requires LMX_ENABLE_SHELL=1.

Operator only

This one touches the host machine, so it needs an operator: an admin role AND an explicit environment flag, both off by default. That is a security control, not a paywall.

Enabled with LMX_ENABLE_SHELL=1 on the API, by an operator, on purpose.


A WORKED EXAMPLE

LMT Demo Script for Time-Driven Actions

The same script the engine test suite runs, so it cannot quietly stop working.

# LMT Demo Script for Time-Driven Actions

# After 1 second, show a toast notification
after 1s do
  toast "Time to take a break!"
end

SYNTAX

The shape of it.

Straight from the interpreter catalogue — the same summary the editor shows as a placeholder.

after 5s do
  toast "5 seconds later"
end

NEXT

Where to take it.