LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   stdin/stdout (https://www.linuxquestions.org/questions/linux-newbie-8/stdin-stdout-912333/)

amilo 11-07-2011 09:22 AM

stdin/stdout
 
HOWTO the produced data of tar -c routed vi stdin/stdout to scp [filename] [username]@host:

thanks

catkin 11-07-2011 09:28 AM

scp can't not read from stdin. Here's a workaround copied from http://raftaman.net/?p=444
Code:

tar cz a/dir | ssh user@remotehost.com "cat >outfile.tar.gz"


All times are GMT -5. The time now is 05:31 PM.