【问题标题】:Can you pipe to `heroku run` without it echoing the text back?你能在不回显文本的情况下通过管道传输到“heroku run”吗?
【发布时间】:2019-02-21 03:14:25
【问题描述】:

向远程heroku run 发送少量输出,我看到标准输入回显,如下所示:

$ echo 'foobar' | heroku run wc
Running `wc` attached to terminal... up, run.2758
foobar
      1       1       7

我不想让进程 stdin 回显,而是让它像本地运行一样工作:

$ echo foobar | wc
      1       1       7

(我真正的命令是向远程命令发送数百兆字节。)

有什么方法可以调用heroku run,通过管道传输本地数据,但抑制其回显数据?

【问题讨论】:

  • 您最终找到解决方案了吗?

标签: heroku heroku-toolbelt


【解决方案1】:

heroku run --no-tty 将防止标准输入被回显,因此您可以将本地数据通过管道传输到命令。

【讨论】:

    猜你喜欢
    • 2016-06-11
    • 2022-07-25
    • 2023-04-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-02-07
    • 1970-01-01
    • 2019-01-24
    相关资源
    最近更新 更多