|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Automatic upload to server
Hi there.
![]() I wasn't sure what would be the best place to post this, so I went for here... I have a language school, and we record our lessons for students and upload them to a server for students to download them later to review the class. What I would like to do is have my computer periodically check the directories where we keep the files, compare them to what's in directories on a remote server, and if the files on my machine are not on the server, to have it upload them for me. It's not a huge hassle doing this manually at the moment, but it would be nice if it could be automated. Is this actually possible? Feel free to move this thread anywhere you like - as I said, I wasn't sure where to post it. Thanks in advance for any help. ![]() |
|
#2
|
||||
|
||||
|
Quote:
You should be able to set up a timed task pretty easily. What I prefer to do is install cygwin on my machine and add cron and expect to it. Then if you're comfortable with UNIX scripts, you can easily look a the directories and upload files that you haven't already uploaded. |
|
#3
|
||||
|
||||
|
Quote:
Hey. Thanks for the reply. To be honest, I don't know very much about programming outside of web stuff, so if you could actually give me any pointers on this, it would be appreciated. Thanks again. |
|
#4
|
||||
|
||||
|
Quote:
Are you familiar with Java? You could pretty easily write a Java program to scan the directories where the files would be stored. You could keep a log of all files that have been uploaded to the server and compare that to the files that are in the directories. There are some third party jars that give you the ability to ftp through Java or post to web forms. |
|
#5
|
||||
|
||||
|
Sorry, no.
I know nothing of java. javascript and php are about all I know. But I learn quickly, so if you can put point me in the right direction...Cheers. |
|
#6
|
||||
|
||||
|
Quote:
Well if you download the latest JDK from java.sun.com, the java.io package contains the File class which lets you easily get a directory listing. You can download Apache Commons Net . This will allow you to FTP. You can also download Jakarta Commons HttpClient if you want to post files. |
|
#7
|
||||
|
||||
|
Thanks.
![]() |
![]() |
| Viewing: Dev Shed Forums > System Administration > FTP Help > Automatic upload to server |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|