What is wrong with this code?
Thanks in advance for your answers.
using (var client = new SshClient("host", "user", "password"))
{
client.Connect();
// var result = client.RunCommand(<ValidCommand>); // command executing and doing fine
var result2 = client.RunCommand("nohup <ValidCommand> &"); // nothing happend - error and result are empty. On linux server nohup.out doesn't appear
client.Disconnect();
}
How to run nohup command? What is wrong with this code?Thanks in advance for your answers.