Re: scp to pipe
From: Atro Tossavainen (atossava_at_cc.helsinki.fi)
Date: 09/16/04
- Previous message: konsar: "Re: scp to pipe"
- In reply to: David Hutchins: "Re: scp to pipe"
- Next in thread: konsar: "Re: scp to pipe"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
To: secureshell@securityfocus.com Date: Thu, 16 Sep 2004 18:50:21 +0300 (EEST)
Hello,
> scp <user>@host:<file> /dev/sdtout | <command>
>
> It throws the warning "/dev/stdout: truncate: Invalid argument" unless you use
>
> scp <user>@host:<file> /dev/sdtout 2>/dev/null | <command>
>
> But you dont get anything else from stderr either. Hope it helps.
I don't get a truncate error message.
However, one problem I can see with this is that you would be mixing
the standard output from scp (which at least in ssh.com ssh2 v3.2.3
means the statistics) with the contents of the file being copied.
-- Atro Tossavainen (Mr.) / The Institute of Biotechnology at Systems Analyst, Techno-Amish & / the University of Helsinki, Finland, +358-9-19158939 UNIX Dinosaur / employs me, but my opinions are my own. < URL : http : / / www . helsinki . fi / %7E atossava / > NO FILE ATTACHMENTS
- Previous message: konsar: "Re: scp to pipe"
- In reply to: David Hutchins: "Re: scp to pipe"
- Next in thread: konsar: "Re: scp to pipe"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]