Пример #1
0
		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();
		}
Пример #2
0
        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();
        }
Пример #3
0
 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;
 }
Пример #4
0
		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 = "";
		}
Пример #5
0
        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        = "";
        }
Пример #6
0
        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        = "";
        }
Пример #7
0
		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;
		}