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

New Post: Send and store results from multiple commands in the same connection

$
0
0
Is there a way to do this? I am opening a connection and sending a command, for example, cd /some dir

i then store this as a SShCommand global variable.

what i am trying to do is send another command in the same conection/session say pwd... and verify that the result contains 'some dir'.

what is happening is, the result from the second send command is the root directory, not the directory i changed to from the first send command.

it seems that the connection is remaining open but i am losing the session?

Viewing all articles
Browse latest Browse all 1729

Trending Articles



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