FTPing files from unix server to windows server

Hi,

Below is the script which ftps the file from unix server and putting in a different directory(but on unix server)

How can i ftp the files from unix server and to place in a secure location on windows server? what changes needs to be done to the below script?

How can this be achieved?

Can anyone throw light in this regard?

Problem Summary: Ftping the files from unix server and placing on windows server.

#!/bin/ksh
#Usage example: ftpscript readme.txt /pub/dir1/readme.txt
localFile="/opt/Scripts"
remoteFile="/Java/epos/xml"
ftplog="/opt/Scripts/loglog.log"
echo "$(date "+%H:%M:%S") - Attempt to FTP $localFile to $remoteFile" > $ftplog
# do the FTP put
cd $localFile
ftp -i -n <<EOF >> $ftplog
open 172.17.12.42
user matadmin matadmin
cd $remoteFile
put check_file.txt
quit
EOF

Thanks in advance.

Regards,
Venkatesh.

Nice oxymoron :slight_smile:

Did you search the forums already? I'm sure there have already been threads on how to FTP to Windows (have FTP server running, ...)