Quantcast
Channel: sshnet Discussions Rss Feed
Viewing all articles
Browse latest Browse all 1729

New Post: Running nuhup command using SSH.NET

$
0
0
What is wrong with this code?
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.

Viewing all articles
Browse latest Browse all 1729

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>