-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can you use WebTerminal features with the %Net.TelnetStream class to connect to other older Cache Instances? #100
Comments
Hello! First, my congratulations on creating a #100 issue! Thanks for the cool thing. It should definitely become the part of WebTerminal. Maybe it is worth something like The syntax highlighting works only for "native" prompts in WebTerminal (not for
Could you please paste the code as a plain text (use ``` ... code ... ```)? It is definitely useful. Any ideas on the options I suggested? Thanks! |
Pasting code as plain text as requested. I'm new to Github so let me know if it's not displaying properly
The /telnet [email protected] would be very nice. My first preference would be Option 2 to refactor the AutoComplete code. I hope it's not too much work as we will be moving to Cache 2017.1 in the next few months. Right now we are using Cache 2013.1. I think the %Net.TelnetStream class might be reliant on a Windows platform; if we could make the /telnet option cross-platform that be awesome. I have used C# .NET telnet clients such PIEBALDconsults TelnetSocket wrapper and integrating it with a C# .NET web application hosted inside our corporate network. It's useful as the more good examples you have of telnet interactions the better you understand the protocol. I know Telnet is an insecure protocol that uses plaintext but we use Telnet sessions all the time inside our network, so security isn't a concern here as it is no different from other telnet traffic. |
Thank you for your code.
Do you mean that old telnet server? Hmm, than I see doing this is not so perspective. Maybe let's just add this little utility to work with remote sessions in WebTerminal? I will try to think, probably there's not so much to do in code to enable autocomplete for telnet sessions. Anyone's other comments on |
Have you seen RCE project?
|
@swils024 I can also send you an article on the topic. |
If you have a Windows version of Cache 2017.1 installed with WebTerminal, can you use the Windows Telnet emulator class %Net.TelnetStream to connect to older remote Cache servers and inherit the autocomplete and syntax highlighting features of WebTerminal?
Here is example Cache ObjectScript code, which you can execute from the USER namespace within a WebTerminal session. I called the file TelnetInit.mac
In the code sample provided, you can ignore prompts after the username and password are processed. 'S' is simply a login menu option for selecting a shell session. Now you have a UNIX Server shell you can run csession to connect to any Cache instance on that server and list globals or run programs. I want to inherit the autocomplete and syntax highlighting but I don't know if this is possible.
The text was updated successfully, but these errors were encountered: