【发布时间】:2013-02-07 09:43:17
【问题描述】:
我需要从批处理作业中启动 2 个后台进程,然后等待它们。 Unix shell 类比是:
myprocess1 -flags1 &
pid1=$!
myprocess2 -flags2 &
pid2=$!
wait ${pid1}
wait ${pid2}
有什么想法吗?
【问题讨论】:
-
有一个想法为 Windows 或类似的东西安装
bash(我确信至少有一个本地的、非 cygwin 端口的zsh)。我很想为许多批处理文件问题推荐相同的东西,但对于这个问题,它可能是一个很好的答案。 -
@AntonKovalenko 谢谢。我正在考虑这个。
标签: windows batch-file windows-shell