IETF-SSH archive

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

RE: redirect scp (stdout) to file



Kumar,

Thanks for getting back to me.  The -v works but puts all that debug info in
the file and not the %100 completion info.  
I'd prefer to get only what's displayed on the screen.

Thanks,
Tom


 -----Original Message-----
From: 	Kumaresh [mailto:kumaresh_ind%gmx.net@localhost] 
Sent:	Wednesday, March 10, 2004 8:27 AM
To:	Borklund, Thomas; 'ietf-ssh%netbsd.org@localhost'
Subject:	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