File Transfer

I'd like to write a program that will automatically transfer files from a linux machine to a windows machine over a LAN every couple of hours... I do not want to install any client software on the linux machine -- only the windows machine. Can someone help me get started? Should I be using a specific network protocol? (SSH, SCP, FTP, SOCKETS)? What API should I use?

Thanks

[389 byte] By [tal0n34a] at [2007-11-26 16:05:31]
# 1

sounds like a job for FTP. you can do it 2 ways

1) run an FTP server on the linux machine. chances are there's already one there. then your client - running on windows - connects to the server and does an ftp get to do the transfer

2) run an FTP server on the windows machine, and run your software on the linux machine, doing an ftp put to do the transfer

given your requirements, looks like 1) is the best bet

a word of advice. don't bother trying to implement the ftp protocol yourself, it's cumbersome, and it's already been done. seach [url="http://sourceforge.net/"]sourceforge[/url] or something similar for open-source java FTP libraries. there's loads of them around

georgemca at 2007-7-8 22:27:32 > top of Java-index,Java Essentials,Java Programming...
# 2
If you configure the linux folder to be seen by the windows machine as a network share even a simple bat file registered in windows task scheduler will do. Mike
bellyrippera at 2007-7-8 22:27:32 > top of Java-index,Java Essentials,Java Programming...