[prev in list] [next in list] [prev in thread] [next in thread] 

List:       coreutils-bug
Subject:    Re: Maybe a bug
From:       Brian Dessent <brian () dessent ! net>
Date:       2005-06-21 4:38:23
Message-ID: 42B799BF.6F43FEF6 () dessent ! net
[Download RAW message or body]

nosair wrote:

> scp -r [user]@[server]:~/* ~/ECEJUNE2006 | tee transfer_june_2006.txt
> 
> I get the prompt for password. After that, the downloading of files and
> folders begins as normal. However, the file transfer information does not show
> on screen, and transfer_june_2006.txt remains empty during the downloading.

This is not a bug.  scp will not print any progress output if the
standard output is not a tty.  Even if it did, you would probably not
like the result since it prints a line to the screen every second,
prefixed with a \r so that each successive line overwrites the next.  If
you redirected that to a file you would get a bunch of nonsense when you
tried to view it later.

You can actually do this with the 'script' utility, which simulates a
tty to the command with a pseudoterminal:

script transfer_june_2006.txt scp -r foo@bar:~/* ~/whatever

However, when you view the .txt file with 'less' it will likely be
fairly unintelligible, certainly not a plain text log.  Though if you
'cat' it to a terminal you will recreate the scp output in fast-forward
mode.

Brian



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic