LMX // .LMS
.lmsShell Automation
Runs OS shell commands (RUN / CAPTURE / IF_SUCCESS).
- Operator only
- a .lms file
- free to run
WHAT IT IS
Why .lms exists.
Automates shell commands with variables, output capture and success/failure branches. Executes real commands on the server — admin-only and disabled unless 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
My first LMS script — runs real shell commands (admin-only, cross-platform, side-effect free).
The same script the engine test suite runs, so it cannot quietly stop working.
# My first LMS script — runs real shell commands (admin-only, cross-platform, side-effect free).
TITLE "Command Line Scripting Demo"
# Set a variable and echo it (works on both cmd and sh)
SET NAME = "Leumas"
RUN echo Hello from LMS, ${NAME}!
# Capture a command's output into a variable, then reuse it
SET WHO = CAPTURE(echo captured-value)
RUN echo Captured: ${WHO}
# Branch on the previous command's success
RUN echo probing
IF_SUCCESS RUN echo Previous command succeeded.
SYNTAX
The shape of it.
Straight from the interpreter catalogue — the same summary the editor shows as a placeholder.
TITLE "Shell demo" RUN echo hello IF_SUCCESS RUN echo ok
NEXT