IETF-SSH archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: redirect scp (stdout) to file
Are you using "-v" option with the scp command.
use
scp -v <src_file> <dest_file> 2> <logfile>
-Kumar.
----- Original Message -----
From: "Borklund, Thomas" <Thomas.Borklund%do.treas.gov@localhost>
To: "'ietf-ssh%netbsd.org@localhost'" <ietf-ssh%NetBSD.org@localhost>
Sent: Wednesday, March 10, 2004 6:32 PM
Subject: redirect scp (stdout) to file
> Question:
>
> How can I "trap" or redirect the stdout results from the scp command to a
> file? The scp works fine and displays to the terminal the files being
> transferred, %, size ...etc but I can't get this information into a log
> file.
>
> i.e.
> scp "source file" "server":"target directory" 2>&1 > script.log
>
> Thanks,
> Tom
>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.576 / Virus Database: 365 - Release Date: 1/30/2004
Home |
Main Index |
Thread Index |
Old Index