【问题标题】:Redirecting input/output in git bash for Windows在 Windows 的 git bash 中重定向输入/输出
【发布时间】:2017-06-14 20:49:46
【问题描述】:

我正在尝试在 Windows 的 git bash 中运行以下命令。

$ python Prog.py my_output.out

我收到以下错误:“输入不是 tty”

注意:该命令使用 MinGW 的 bash.exe 可以正常工作。

在 git bash 上运行上述命令以获得胜利的任何方式

编辑:bash.exe 不是 git.exe!

【问题讨论】:

    标签: windows git-bash


    【解决方案1】:

    用途:

    python.exe Prog.py < my_input.in > my_output.out
    

    注意python。exe

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-07-11
      • 1970-01-01
      • 2012-04-04
      • 1970-01-01
      • 2014-11-17
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多