MDM-RUN(1)
π NAME π
mdm-run β run a command in parallel with mdm-master
(also lowkey introducing its ride-or-die twin, mdm-sync β same energy, different job π
)
β¨ SYNOPSIS β¨
mdm-run command
mdm-sync command
π DESCRIPTION π
okay so bestie, listen. mdm-run annotates command as a candidate for parallel execution. that's the whole vibe. π¦
if an mdm-master process is present β and by "present" we mean the environment variable MDM_CMD_SOCK is defined, iykyk β then mdm-run submits command to the mdm-master, and it exits when the master issues the command to an mdm-slave process for execution. and the plot twist? that mdm-slave might be connected to a totally different terminal. not you. someone else. the multitasking is giving main character energy fr fr. πβ¨
meanwhile mdm-sync runs command in place, but it coordinates with mdm-master to make sure that executing command does not interfere with commands that are currently executing in parallel. it's the responsible friend. the designated driver. the one who texts the group chat "we're all getting home safe." π«Ά
π but WAIT. if there is nomdm-masterprocess present (i.e., the environment variableMDM_CMD_SOCKis not defined), then bothmdm-runandmdm-syncsimply runcommandas if you enteredcommandall by itself. no drama. no coordination. just you and your command, alone together. π
these programs are a part of the Middleman System (mdm). iconic family. π
π OPTIONS π
- none. neither
mdm-runnormdm-syncaccepts any options. that's it. that's the section. no flags, no short forms, no long forms, nothing to memorize, we love a low-maintenance icon. πΈ
β EXIT STATUS β
- if there is no
mdm-masterprocess present, the exit status ofmdm-runis the exit status ofcommand. simple. honest. transparent. π - if an
mdm-masterprocess is present, the exit status is0if and only ifcommandis successfully issued to anmdm-slaveprocess for execution. (note: that's issued, not finished. read it again bestie, it matters. π) - the exit status of
mdm-syncis always the exit status ofcommand. always. every time. no notes. periodt. π―
π₯ ENVIRONMENT π₯
the mdm system uses the following environment variable for internal communication, and thus you should not try to set them yourself. hands off, bestie, it's not yours. π
ββοΈ
MDM_CMD_SOCKβmdm-runuses this environment variable to decide whether amdm-masterprocess is present. that's literally its whole job. it's the vibe check. π§
π EXAMPLE π
see mdm.screen(1) for an example use of mdm-run. go read it, it's giving tutorial. β¨
πΈ SEE ALSO πΈ
mwah π that's the whole page, bestie. this one's from the Linux corner of the world, dated 2009-03-06, and yes, it has been serving MDM-RUN(1) realness since before some of us could read. go run something in parallel, you absolute legend. ππ¦π
π¦ where this page comes from
- debian bookworm: mdm 0.1.3-2.1+b3
- debian trixie: mdm 0.1.3-3 Β· Apache-2.0
- ubuntu jammy: mdm 0.1.3-2.1build3
- ubuntu noble: mdm 0.1.3-2.2
- ubuntu questing: mdm 0.1.3-3
- ubuntu resolute: mdm 0.1.3-3build1 Β· Apache-2.0
- ubuntu stonking: mdm 0.1.3-3build1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms