为什么我的cmd程序总是自动暂停?
当我使用 cmd(start->run->cmd) 运行 java ant build 或其他程序时。通常该命令将连续运行程序,直到完成所有任务。运行过程中,cmd控制台会不断输出特定的一些日志。
但我的问题是命令总是在几分钟后自动暂停。如果我物理上输入任何按键来唤醒它,它将重新启动。这真的很无聊,我需要一直监视 cmd.exe。
有什么方法或配置来解决这个问题,或者有什么工具代替Windows cmd.exe来实现相同的功能?
When I use cmd(start->run->cmd) to run java ant build or something else program. Normally The command will run the program continuously until all tasks has to be done. on the process of runing, the cmd consle will output specific some log continuously.
But My promblem is that the cmd always be paused automatically after few minutes. it will be restart if I phsyically enter any keystroke to awaken it up. it's really boring I need keep watch on the cmd.exe on all time.
Any way or configration to solve this, or any tools instead of windows cmd.exe to archieve the same function?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我可以想到几个可能的解释:
System.in
读取某些内容时,它正在暂停。(FWIW:
cmd.exe
程序还使用 CTRL-S / CTRL-Q 实现暂停/继续,但是(AFAIK)需要您从键盘物理输入控制字符......这就是没有发生。)I can think of a couple of possible explanations:
System.in
.(FWIW: the
cmd.exe
program also implements pausing / continuing using CTRL-S / CTRL-Q, but (AFAIK) that requires you to physically enter the control characters from the keyboard ... and that's not happening.)