When we are executing few command the below code is executing successfully but for few commands such as "server_mount ALL" , it is giving error code 127 and command not found error with message "bash: server_mount: command not found"
If we notice carefully the error message does not have ALL text. its only having server_mount . What could be the issue . is the problem with space before ALL
Please suggest a solution.
below is the code i am using I am using dotnet 3.5 latest dll
var client = new SshClient("12.xx.xx.xx", "rootxx", "xxxxx");
If we notice carefully the error message does not have ALL text. its only having server_mount . What could be the issue . is the problem with space before ALL
Please suggest a solution.
below is the code i am using I am using dotnet 3.5 latest dll
var client = new SshClient("12.xx.xx.xx", "rootxx", "xxxxx");
client.Connect();
string commandName = txtCommand.Text.ToString();
SshCommand command = client.CreateCommand(commandName);
command.CommandTimeout = new TimeSpan(24, 0, 0);
commandResult = command.Execute();
string error = command.ExitStatus.ToString();
MessageBox.Show(error);
MessageBox.Show(command.Error);