Issue while Copying from Windows to Linux through script

Advertisement

mahendra_sharma
Joined:
Posts:
1
Location:
Melbourne

Issue while Copying from Windows to Linux through script

I am using below script to copy from Linux to windows to copy XML files and its working perfectly fine although when i want to do the same copy from Windows to linux it doesnt work.

---------------------------------------------------------------
open sftp://username:password@linux server address -hostkey=""
option echo on
option batch on
option confirm off
option transfer binary
cd "/sasdata/prod/RCentre/HTML/"
lcd "C:\RC\Monit\HTML - Win7\"
get Cat.xml
get XML.xml
close
exit

---------------------------------------------------------------
while copying from windows to linux, i am just changing lcd to cd and vice versa.

I used different options like get -resume or get -resumesupport. although nothing worked. Please help

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum