in reply to capture scp output
Cheers - L~R
Update: Apparently not. I tried:
scp user@host:/path/to/file . >foo 2>bar
Without capturing the progress bar in either file. Incidently, you can turn the progress bar off with the -q option. I wasn't expecting this to produce a nice plain text output given the nature of how the progress bar works, but I would have at least expected something - odd.
Update 2: You might still be able to do what you want without the progress bar. If you disable the progress bar with -q but enable verosity with -v, then all the same information that is in -q can be read on STDERR. Incidently, scp exits with 0 on success and >0 on error.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: capture scp output
by tomfoolry (Initiate) on Apr 20, 2005 at 17:47 UTC |