Post a reply

Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)


Topic review


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

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