LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-07-2011, 10:22 AM   #1
amilo
Member
 
Registered: Oct 2011
Location: Nederland
Distribution: Debian, Centos, Ubuntu
Posts: 78

Rep: Reputation: Disabled
stdin/stdout


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

thanks
 
Old 11-07-2011, 10:28 AM   #2
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
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"
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
tar, stdin or stdout evil_empire Linux - Newbie 3 06-20-2009 07:43 PM
Handling stdin and stdout in a daemon inakizi Programming 4 12-13-2007 12:13 AM
Details of stdin and stdout pixellany Linux - Newbie 1 01-11-2006 02:21 PM
stdout stdin Furlinastis Linux - Newbie 3 08-12-2005 12:00 AM
stdin -> port -> stdout acid_kewpie Linux - Networking 5 04-12-2002 07:01 AM


All times are GMT -5. The time now is 04:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration