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();
		}
Esempio n. 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();
        }
Esempio n. 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;
 }
		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 = "";
		}
Esempio n. 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        = "";
        }
        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;
		}