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

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -