Ethical Hacking Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package. | Computer Forensics Training at InfoSec Institute Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors. |

| Subject: | Re: scp to pipe |
|---|---|
| Date: | Sun, 12 Sep 2004 17:38:47 +0000 |
$ ssh myuser@mycomp "cat ~/myfile.tar.gz" | tar -xz If you really want to use "scp" then: $ mkfifo myfifo $ tar -xz < myfifo& $ scp myuser@mycomp:~/myfile.tar.gz myfifo $ rm myfifo "scp", "rcp" and "cp" all work the same. They copy a file from one filesystem to another filesystem. On Sat, 11 Sep 2004 05:49:56 -0400 (EDT), hlaguy <hlaguy@excite.com> wrote:
How can scp write to a pipe that tar could then process? On i386 Gentoo Linux, using bash, the following works cat myfile.tar.gz | tar -xf however, this does not work scp myuser@mycomp:~/myfile.tar.gz | tar -xz gzip: stdin: unexpected end of file tar: Child returned status 1 tar: Error exit delayed from previous errors nor does this tar -xz < scp myuser@mycomp:~/myfile.tar.gz I can't think of a way to tell scp to write to pipe instead of a named file. Any suggestions are welcome. _______________________________________________ Join Excite! - http://www.excite.com The most personalized portal on the Web!
--
END OF LINE
-MCP
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Locking down ssh config in large env, Brett Anderson |
|---|---|
| Next by Date: | patch: openssh 3.9p1 on hp-ux 10.20, Greg Wooledge |
| Previous by Thread: | Re: scp to pipe, konsar |
| Next by Thread: | Multiple modes? throught one connection, Tim Nelson |
| Indexes: | [Date] [Thread] [Top] [All Lists] |