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

你好,JSP linux 环境支持不是很好 #18

Open
aaaaaaaannn opened this issue Jun 25, 2015 · 3 comments
Open

你好,JSP linux 环境支持不是很好 #18

aaaaaaaannn opened this issue Jun 25, 2015 · 3 comments

Comments

@aaaaaaaannn
Copy link
Contributor

demo2
在linux环境直接执行命令不可以.

服务端中有这样一段代码
String ExecuteCommandCode(String cmdPath, String command) throws Exception {
StringBuffer sb = new StringBuffer("");
String[] c = { cmdPath, File.separator=="/"?"-c":"/c", command };

我想其中-c 这部分作者有考虑过linux bash 环境.我不太了解项目该部分的细节代码流程,不知道怎么将命令解释器变更为/bin/sh。谢谢!

你的作品太棒了,永远支持你,望作者持续开发。我想我也可以在shell服务端代码上帮助altman完善。

@aaaaaaaannn
Copy link
Contributor Author

找到了一个临时办法。应该是服务端代码判断问题,增加了一个isWin 函数,可以正常列举。

另外命令窗口展示不是很简洁,字体显示乏味。自己单独做了下修改(调整小字体,按个人喜好更换了深色)。我可以提交代码吗?:dancer: 。麻烦作者解答!:hand:

https://github.com/aaaaaaaannn/fix-commandshow/blob/master/test.jsp

@keepwn
Copy link
Owner

keepwn commented Jul 8, 2015

欢迎使用Pull Requests功能:)

@aaaaaaaannn
Copy link
Contributor Author

嗯!有在研究

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