Quantcast
Channel: UNIX and Linux Forums
Viewing all articles
Browse latest Browse all 16232

Cygwin script to transfer file from windows to UNIX

$
0
0
Hi,
Objective is to transfer files from windows server to Unix server using cygwin.
I have installed cygwin, and I manually execute commands and transfer files from windows to unix using sftp. These are steps I execute
1) Run cmd
2) Run cygwin
3) At prompt type sftp user1@uniserver
4) lcd "C:\Work"
5) cd /data/in
6) mput *.dat
7) bye

I have following questions:
I need to automate the above process and script needs to exist on Windows server.
If I need to pass parameters will it be in shell script format or windows?
How will I invoke cygwin and execute the script at command line?

Viewing all articles
Browse latest Browse all 16232

Trending Articles