This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
SuperCreeper1000's profile picture

Remote shell question

Started by SuperCreeper1000, 23 September 2015 - 02:09 PM
SuperCreeper1000 #1
Posted 23 September 2015 - 04:09 PM
I have a sort of this too but i want it to be a little bit different.

If I type ls the command will be send to the server, the server receives it, runs it and sends the output back to me, so it will look like this:

Client:

> ls

The server contains for example the files test and hi in its root, that information will be send to the client

Client:

rom
test hi

How do i do this?
Lyqyd #2
Posted 23 September 2015 - 07:36 PM
You might take a look at my nsh program for inspiration. Essentially, what you'd need to do is transport events from the client to the server, and transport term calls from the server to the client.
SuperCreeper1000 #3
Posted 26 September 2015 - 09:17 AM
Thx i hope it will work