来自浏览器的 Erlang shell?
我有一个带有网络前端的 erlang 应用程序。现在,如果您想通过 shell 与它对话,则必须从命令行进行。该应用程序将在多个平台和管理员可能不太精通命令行的环境中运行,但出于技术支持的目的,我希望能够让他们在浏览器中打开 shell 并能够检查节点的状态。
有人已经实施过这样的事情吗?它需要支持 Windows、Red Hat 和 OS X 以及主要浏览器。看起来很像 shell 并支持相同命令的东西是最好的。
I have an erlang app with a web frontend. Right now, if you want to talk to it via the shell, you have to do it from the command line. This app will be running on multiple platforms and in environments where the administrator may not be very command-line savvy, but for tech support purposes I'd like to be able to have them bring up a shell in their browser and be able to inspect the state of the node from that.
Has someone already implemented such a thing? It would need to support Windows, Red Hat, and OS X, as well as major browsers. Something that looked a lot like the shell and supported the same commands would be best.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
一种可能是使用基于 Web 的终端,例如 AjaxTerm 并设置 Erlang shell作为网络用户的默认 shell。例如,在 UNIX 系统中,可以通过在 /etc/passwd 文件中设置正确的值来完成此操作。
显然,我们在这里考虑的是一个安全的环境,其中不向任何恶意用户提供访问权限,并且外部世界无法访问节点。
A possibility could be to use a web based terminal such as AjaxTerm and to set the Erlang shell as the default shell for the web user. For example, in a UNIX system, this could be done by setting the proper value in the /etc/passwd file.
Obviously, we're considering here a secure environment, in which access is not provided to any malicious user and the nodes are not accessible from the outside world.
我刚刚遇到了 erlwsh 项目。正是您所需要的。
I've just run into the erlwsh project. Does exactly what you need.