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

建议命令执行不自动前缀 cmd /c 或者 sh -c #69

Open
peter5he1by opened this issue Jun 20, 2023 · 1 comment
Open

建议命令执行不自动前缀 cmd /c 或者 sh -c #69

peter5he1by opened this issue Jun 20, 2023 · 1 comment
Labels
proposal 建议

Comments

@peter5he1by
Copy link

peter5he1by commented Jun 20, 2023

建议

实战中遇到了 cmd /c whoami 无返回结果的现象(Windows 下的 Oracle 数据库),但如果修改 ShellUtil.java,将使用者的输入直接传入 runtime.exec() 的话是可以正常接收到响应的(stdout 读取方式不变)。

或者也可以做成可选项

@peter5he1by peter5he1by added the proposal 建议 label Jun 20, 2023
@Ch1ngg
Copy link
Contributor

Ch1ngg commented Jul 17, 2023

这个无厘头的 Bug 很早就发现了,参考了好几款工具的命令执行代码发现都是如此,应该是 Oracle 的某些限制导致的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
proposal 建议
Projects
None yet
Development

No branches or pull requests

2 participants