SSH.StartProcess
Skip to content
mnscript
StringResult SSH.StartProcess(string, string) 

Description ​

Executes an MNScript .mscx file on the remote server.

Arguments ​

string - The remote directory containing the program.
string - The remote program file name.

Returns ​

StringResult - A StringResult representing the success of the operation.

Example ​

msc
using System;
using Console;

if(SSH.IsConnected()){
    StringResult result = SSH.StartProcess("c/programs", "MyProgram.mscx");

    if(result.GetResult()){
        Console.WriteLine("Remote process started");
    }else{
        // If the program failed to start, the error will be in the result's string.
        Console.WriteLine("Error: "..result.GetString());
    }
}