Skip to content
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

How can I get the command back? #9

Open
fx-k opened this issue Nov 10, 2018 · 8 comments
Open

How can I get the command back? #9

fx-k opened this issue Nov 10, 2018 · 8 comments

Comments

@fx-k
Copy link

fx-k commented Nov 10, 2018

怎么实现在linux终端输入一条命令来获取服务器的返回值?
类似之前版本内的:mcpeserver exec

@codehz
Copy link
Owner

codehz commented Nov 10, 2018

这个啊,新版启动器在做呢。。要基于Docker了(当然dbus协议还是有的,跑在不同容器里,用于“未来可能要实现的”服务端之间的通讯)

@fx-k
Copy link
Author

fx-k commented Nov 10, 2018

嗯,,最新的服务端确实很好用。。
那就是说暂时还没这个功能吧?
好吧,期待...

@codehz
Copy link
Owner

codehz commented Nov 10, 2018

其实是有的。。。一个暂时能用的管理器是bdsm,exec功能还在。。但是我准备重做一个,适配现在云原生的潮流
(启动器安装方式参考 https://docs.bdsm.technology/ 需要 chrome 72 以上的浏览器,否则会提示证书错误或者TLS版本不兼容

@fx-k
Copy link
Author

fx-k commented Nov 10, 2018

那。。命令是什么呢?

@fx-k
Copy link
Author

fx-k commented Nov 11, 2018

https://docs.bdsm.technology我就是按照这里面的安装的。。。。
我./bdsm help看了一下,请问是 ./bdsm attach这个命令吗?
服务器在screen用./bdsm r -u开了,开了输入结果如下:

[root@FXIT-Arch bdsm]#  ./bdsm attach list
BDSM Version: v0.1.0-3-g5f438be
Server is not running!
[root@FXIT-Arch bdsm]#

谢谢你!

@fx-k
Copy link
Author

fx-k commented Nov 11, 2018

@keke1229488344 不用谢

???

@codehz
Copy link
Owner

codehz commented Nov 11, 2018

刚记错了,那个exec的功能好像由于某些原因没合并(
另外用-u方式启动,当然也得用-u方式attach

@codehz
Copy link
Owner

codehz commented Nov 11, 2018

但是其实这个exec是可以用简单的shell指令完成的。。。 busctl --user call one.codehz.bedrockserver.default /one/codehz/bedrockserver one.codehz.bedrockserver.core exec s "help"

Repository owner deleted a comment from HongyiMC Nov 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants