bash - Redirect output of command with heredoc -
i have command this:
sftp user@host <<eof put file.txt exit eof now i'd pipe output of zenity --progress, can't find place put it.
# sftp doesn't work anymore sftp user@host | zenity --progress <<eof put file.txt exit eof # invalid syntax, no end of heredoc sftp user@host <<eof put file.txt exit eof | zenity --progress # not picked part of command sftp user@host <<eof put file.txt exit eof | zenity --progress # not sftp user@host | zenity --progress <<eof put file.txt exit eof\ | zenity --progress
this should trick:
sftp user@host <<eof | zenity --progress ... eof
Comments
Post a Comment