[kanchilug] Re: Windows to Unix File transfer -Help

  • From: Shrinivasan T <tshrinivasan@xxxxxxxxx>
  • To: kanchilug@xxxxxxxxxxxxx
  • Date: Tue, 23 May 2017 13:57:13 +0530

Share the details of ip, username,path of both source and destination.

If path has space, check for how to escape space on commands.

On 23 May 2017 10:23, "senthil nathan" <sendhamca@xxxxxxxxx> wrote:

Team,


I am trying to copy a file from windows shared path to Unix AIX server
through commands. its a part of automating the file process. i tried with
scp command from Unix console

encountered the below error

Can any one help to work this.


 scp -v -rp admin@100.121.158.136:\\TFAYD.com\Shared\
SportsAnalyticsExtracts\us-ush\share\Digital Traffic\Video
Impressions\Incremental Data\BI_Research_crosstab.csv /home/sprtdwbat
Executing: program /usr/bin/ssh host 100.121.158.136, user admin, command
scp -v -r -p -d -f \TFAYD.comSharedSportsAnalyticsExtractsus-ushshareDigital
OpenSSH_5.3p1, OpenSSL 1.0.1e-fips 11 Feb 2013
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to 100.121.158.136 [100.121.158.136] port 22.
debug1: connect to address 100.121.158.136 port 22: Connection refused
ssh: connect to host 100.121.158.136 port 22: Connection refused
Executing: cp -r -p TrafficVideo /home/sprtdwbat
cp: cannot stat `TrafficVideo': No such file or directory
Executing: cp -r -p ImpressionsIncremental /home/sprtdwbat
cp: cannot stat `ImpressionsIncremental': No such file or directory
Executing: cp -r -p DataBI_Research_crosstab.csv /home/sprtdwbat
cp: cannot stat `DataBI_Research_crosstab.csv': No such file or directory



Thanks in advance

Regards,
Senthil

Other related posts: