This project is read-only.

Executing SSH command detached

Feb 15, 2016 at 1:29 PM
Edited Feb 15, 2016 at 2:14 PM
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.

If I try the same command via PUTTY it returns immediately.

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

Thank you very much