MeshCentral icon indicating copy to clipboard operation
MeshCentral copied to clipboard

Terminal execute commands

Open Eris92 opened this issue 4 weeks ago • 3 comments

Is your feature request related to a problem? Please describe. When using MeshCentral, I often need to run predefined scripts stored on the server. Currently, the option "Run commands from server file" is available only from the device list view. This option is missing in Desktop and Terminal. As a result, to run a script from a server file, I must leave the active session, which disrupts workflow and is inconvenient.

Describe the solution you'd like Add the same "Run commands from server file" option to:

  • Desktop → Actions → Execute Commands
  • Terminal → Actions → Execute Commands

The feature should work exactly as it does in the device list view: allowing browsing the server-side script folders and selecting a .ps1 / .cmd / .sh file to execute as agent/system/user.

Eris92 avatar Nov 28 '25 08:11 Eris92

Right click the play button with all the other icons bottom right hand side

si458 avatar Nov 28 '25 09:11 si458

Yes, I’m already using the custom scripts on the play button – there I keep the few scripts that I run very often.

My request is about a different use case: I also maintain a larger collection of “rarely used” fix scripts stored as files on the server. For those, it’s much easier to just pick the right file from the server rather than adding every one of them as a separate custom action on the play button.

Right now, to run such a script I have to leave the Desktop/Terminal session and go back to the device list just to use “Commands from file on server”.

Additionally, the play button is not available at all in the Terminal view, which is actually where I most often need to run these server-side scripts.

Eris92 avatar Nov 28 '25 11:11 Eris92

in theory if i remember correctly, Ylian introduced drag n drop, so if you create a ps1, bat, etc file, then drag it onto desktop session, you should see a big tick, let it go and it will read the file then execute the commands inside that file its another helpful way to execute scripts etc

also you can just click the play button, then select from the drop down commands from file on server so you dont really have to leave the desktop window at all

but also yes i understand that the terminal has no way to run scripts etc so maybe we need to add a button in their which just does what the play button does, open up the prompt box to select scripts etc, then instead of running inside the console, it types them out inside of the terminal window itself

si458 avatar Nov 28 '25 11:11 si458