Hi,
OK I understand now.
I believe that Mach/Lua is capable of supporting a TCP socket which could in turn feed textual Gcode
instructions from a remote file or server. The textual Gcode could be acted on:
mc.mcCntlGcodeExecute(inst,"[Gcode Textual Line]"), note I would not use the ExecuteWait() variant of the API,
you wish this to run as if it were a regular Gcode job.
I personally have no experience of setting up a Lua socket but there is a thread on the forum currently about such matters.
I think also that there is a example in the Mach4/Lua Examples folder.
Craig