批处理命令里 后台异步任务不生效
Author: westwind10Created Jun 24, 2026Updated Jun 24, 2026
- 我已经在 issues 里搜索,没有重复的issue。
环境信息
arthas-boot.jar或者as.sh的版本:4.3.0- Arthas 版本: 4.3.0
- 操作系统版本: centos-7
- 目标进程的JVM版本: 1.8
- 执行
arthas-boot的版本: 4.3.0
重现问题的步骤
- 批处理命令里 &符 后台异步任务不生效
源码里 TelnetConsole.batchModeRun() 方法, 会在 command 后面拼接 | plaintext ; outputStream.write((command + " | plaintext\n").getBytes()); 导致 &符 不生效
Source: alibaba/arthas