bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Maybe a bug


From: Brian Dessent
Subject: Re: Maybe a bug
Date: Mon, 20 Jun 2005 21:38:23 -0700

nosair wrote:

> scp -r address@hidden:~/* ~/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 address@hidden:~/* ~/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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]