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?
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?