Redirect output of command with heredoc

后端 未结 1 2017
醉梦人生
醉梦人生 2020-12-21 05:02

I have a command like this:

sftp user@host <

Now I\'d like to pipe the output of that to zenity --pro

相关标签:
1条回答
  • 2020-12-21 05:55

    This should do the trick:

    sftp user@host <<EOF | zenity --progress
    ...
    EOF
    
    0 讨论(0)
提交回复
热议问题