Conversation
| /// This uses the default time out value. | ||
| /// </remarks> | ||
| protected bool Write(byte[] data) | ||
| internal bool Write(byte[] data) |
There was a problem hiding this comment.
I don't think you're actually using this method, right? So can we keep it protected?
There was a problem hiding this comment.
Hi, you're right, I called this function, but I switched to
(shellStream.Inner as System.Net.Sockets.NetworkStream).Write(bytes, 0, bytes.Length);
I'll correct it, thank you.
|
Thanks, I would need to think a bit about the API surface of this and whether it's something we want to host in the core library before merging it. Just to be sure - I believe you can create the |
|
I will correct, and add a description in the methods
Yes it is possible, I started to change this project because my initial idea was to send an array of commands and it ran inside, but I had some problems in relation to this, so the solution I found was this . Tks |
With this feature you have the possibility to create an interactive shell, where only one shell is created and run several commands in the same instance
I implemented this functionality to send commands dynamically and solve the problem of a very long command, I will show below. This question in stackoverflow
su -c 'sqlite3 /data/data/com.example/databases/messages.db "select id, data from messages WHERE messages.data='EXIT';" 'returns me the error
no such column 'EXIT'while both commands down worked
and
to solve this problem, or to execute commands within another executable, my problem can be solved with the following implementation