private static void ExecuteAndWaitForSSHCommand(string IPAddress,string command) { var handle = new System.Threading.ManualResetEvent(false); var helper = new SshCommandHelper(IPAddress, handle); helper.WriteSSHCommand(command, true); handle.WaitOne(); }
private static void ExecuteAndWaitForSSHCommand(string IPAddress, string command) { var handle = new System.Threading.ManualResetEvent(false); var helper = new SshCommandHelper(IPAddress, handle); helper.WriteSSHCommand(command, true); handle.WaitOne(); }
public SshExecute(string IPAddress, MonoBrickExecutionCommand cmd, string sdbOptions, bool verbose) { _cmd = cmd; _sdbOptions = sdbOptions; _console = cmd.Console; _sshHelper = new SshCommandHelper(IPAddress, _executed, cmd.Console, verbose); Success = false; SuccessWithWarnings = false; }
public ScpUpload(string IPAddress, string localPath, string remotePath) { _localPath = localPath; _remotePath = remotePath; _scpClient = new ScpClient(IPAddress, "root", ""); _sshHelper = new SshCommandHelper(IPAddress); _fileHash = UserSettings.Instance.LastUploadHash; Success = false; SuccessWithWarnings = false; ErrorMessage = ""; }
public ScpUpload(string IPAddress, MonoBrickExecutionCommand cmd) { _localPath = cmd.Config.OutputDirectory; _remotePath = cmd.DeviceDirectory; _scpClient = new ScpClient(IPAddress, "root", ""); _sshHelper = new SshCommandHelper(IPAddress); _fileHash = UserSettings.Instance.LastUploadHash; _console = cmd.Console; Success = false; SuccessWithWarnings = false; ErrorMessage = ""; }
public SshExecute(string IPAddress, MonoBrickExecutionCommand cmd, string sdbOptions, IConsole console, bool verbose) { _cmd = cmd; _sdbOptions = sdbOptions; _console = console; _sshHelper = new SshCommandHelper(IPAddress, _executed, console, verbose); Success = false; SuccessWithWarnings = false; }