piping star prompt?
Tristan M. (2946) 1039 posts |
This question is a little broad becauseĀ I’m not sure what to ask but I know what I want, more or less. What I want is the ability to redirect input and output of the cli to a program. I assume anything that uses a TaskWindow does this. While I have some other programs this would be nice for, my real use is an ssh server. I’d just like remote access to a nice, low bandwidth terminal. In the past I’ve had success with running various clients and servers on RO. Unfortunately the ssh server is functionally useless unless it can have a local input and output. Could someone please point me in the right direction? Searching isn’t helping much because I don’t know the right terminology for what I’m looking for. |
Raik (463) 2061 posts |
I’m not sure if I understand your problem. I mean I have the same ;-) |
Chris Johns (8262) 242 posts |
Sounds like you want to use the TaskWindow module. Somehwat confusingly, the TaskWindow module doesn’t itself show the Taskwindows – the editor does that. So, if you’re running as a desktop task, you can use wimp messages calls to intract with a taskwindow you’ve started with *TaskWindow. So your SSH server would need to run as a desktop task, when a connection came in it would fire up a task window and interact with it to get data from the SSH socket to the task window, and vice versa. This might help – http://www.wss.co.uk/pinknoise/Docs/Arc/Apps/TaskWindow.html |
Jeffrey Lee (213) 6048 posts |
If you can read BASIC, my !NetTask is an example of a simple TaskWindow-based telnet server. |
Tristan M. (2946) 1039 posts |
Thanks for all the help with this. I’m almost tempted not to bother because Jeffrey’s telnet server more or less does what I need. Only semi related, but I was thinking of starting a “Things that build” thread for people to post and read what random programs, libraries etc. can be built on RO and how functional they are. It’s things like this thread that make me think of it. |
Tristan M. (2946) 1039 posts |
Definitely going to have a good poke at Jeffrey’s code. For a bit of fun I logged onto the telnet server, ran !UNIXHome, !CoreUtils and !bash. Not sure how useful it was, but it was interesting! |