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

New Post: Running commands not returning results

$
0
0
  Can you ensure on the server the command exits? 
  e.g. ps auxwww | grep cat
The command exists because the first time I get results, but not after that.
 RunCommand() uses the ssh command feature. Means each command is started in it's own new "shell". 
I'm not using client.RunCommand unless the sshCommand.BeginExecute() is using it.
 If you want the same environment for all command, you have to use a ShellStream.
I'll look at the test scripts to see how to do this

Viewing all articles
Browse latest Browse all 1729

Trending Articles