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

New Post: Executing SSH command detached

$
0
0
Hi,

I tried to executed the following command via SshClient.CreateCommand :
var sshCmd = sshClient.CreateCommand("sleep 2 && echo 'complete' &");
sshCmd.Execute();
This command actually has to return immediately because it should be executed
detached (see trailing '&'). But it does not return until the echo command was completed.

Can somebody please help me. I need the detached execution.

Thank you very much

Viewing all articles
Browse latest Browse all 1729

Trending Articles



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