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

New Post: Identifying that a command has finished (ShellStream)

$
0
0
Suppose I'm using ShellStream in the following way:
shellStream.Write("./interactive_command.sh\n"); // Command, that will ask me to prompt something
shellStream.Write("my first string\n");  // My first response to the prompt
shellStream.Write("my second string\n"); // My second response to the prompt
How do I know that the command './interactive_command.sh' has finished working and I can dispose ShellStream?
By the way, the command './interactive_command.sh' awaits the response silently, that is without any asking strings.

Viewing all articles
Browse latest Browse all 1729

Trending Articles



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