Skip to content

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

@peter5he1by

Description

@peter5he1by

建议

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

或者也可以做成可选项

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions