简体   繁体   中英

How to copy files from windows to linux (cross platform)?

I want to trigger command/script from Linux environment which copies file from windows system to my Linux environment.

I have set up local Linux server for my web application. I am using WinSCP for file transfer and Putty as a console.

I want to automate the process of build deployment of Linux server.For that i have to copy build which is on my windows machine and paste it in my local Linux server so that i can deploy it.

As per my understanding, there should be some shared location which is accessible from Linux environment.

Is there is any script available for this? Also, please tell me the configuration changes require to do this.

You can use synchronize command of winscp from your windows, winscp synchronize command

or winscp.exe command from your command prompt. winscp.exe command

Install cygwin and you can use scp, ssh etc just like you would on linux. Besides, you can use ordinary bash scripts instead of crappy bat-files.

OR

http://www.codingepiphany.com/2014/01/13/batch-script-for-transferring-files-from-windows-machines-to-linux-file-server/

OR

Use samba

you can use rsync for synchronize your files. http://linux.die.net/man/1/rsync

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM