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

New Post: Command not working in API

$
0
0
Hello,

I readed that the ssh API create always a new session for a Command, so I executed my command like this:

command1; command2
string command = "ulimit; Parameters[2].ToString";
var cmd = ssh.CreateCommand(command);
cmd.Execute();
So, he execute ulimit and other function, but it stops like after 2 mins, because of
CPU time limit exceeded
When I self run this in PuttY (ulimit and then my command) it's working fine.

Viewing all articles
Browse latest Browse all 1729

Trending Articles



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