FTP Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationFTP Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old September 13th, 2007, 02:45 AM
BonRouge's Avatar
BonRouge BonRouge is offline
Winemaster
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2004
Location: Sendai, Japan
Posts: 1,354 BonRouge User rank is Second Lieutenant (5000 - 10000 Reputation Level)BonRouge User rank is Second Lieutenant (5000 - 10000 Reputation Level)BonRouge User rank is Second Lieutenant (5000 - 10000 Reputation Level)BonRouge User rank is Second Lieutenant (5000 - 10000 Reputation Level)BonRouge User rank is Second Lieutenant (5000 - 10000 Reputation Level)BonRouge User rank is Second Lieutenant (5000 - 10000 Reputation Level)BonRouge User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 3 Weeks 3 Days 3 h 18 m 20 sec
Reputation Power: 86
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.

Reply With Quote
  #2  
Old September 13th, 2007, 08:42 AM
bullet's Avatar
bullet bullet is offline
Java Junkie
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: Feb 2004
Location: Mobile, Alabama
Posts: 3,310 bullet User rank is Major (30000 - 40000 Reputation Level)bullet User rank is Major (30000 - 40000 Reputation Level)bullet User rank is Major (30000 - 40000 Reputation Level)bullet User rank is Major (30000 - 40000 Reputation Level)bullet User rank is Major (30000 - 40000 Reputation Level)bullet User rank is Major (30000 - 40000 Reputation Level)bullet User rank is Major (30000 - 40000 Reputation Level)bullet User rank is Major (30000 - 40000 Reputation Level)bullet User rank is Major (30000 - 40000 Reputation Level)bullet User rank is Major (30000 - 40000 Reputation Level) 
Time spent in forums: 1 Month 1 Week 1 Day 19 h 52 m 25 sec
Reputation Power: 327
Send a message via ICQ to bullet Send a message via AIM to bullet Send a message via MSN to bullet
Quote:
Originally Posted by BonRouge
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.


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.

Reply With Quote
  #3  
Old September 13th, 2007, 11:22 AM
BonRouge's Avatar
BonRouge BonRouge is offline
Winemaster
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2004
Location: Sendai, Japan
Posts: 1,354 BonRouge User rank is Second Lieutenant (5000 - 10000 Reputation Level)BonRouge User rank is Second Lieutenant (5000 - 10000 Reputation Level)BonRouge User rank is Second Lieutenant (5000 - 10000 Reputation Level)BonRouge User rank is Second Lieutenant (5000 - 10000 Reputation Level)BonRouge User rank is Second Lieutenant (5000 - 10000 Reputation Level)BonRouge User rank is Second Lieutenant (5000 - 10000 Reputation Level)BonRouge User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 3 Weeks 3 Days 3 h 18 m 20 sec
Reputation Power: 86
Quote:
Originally Posted by bullet
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.

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.

Reply With Quote
  #4  
Old September 13th, 2007, 11:33 AM
bullet's Avatar
bullet bullet is offline
Java Junkie
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: Feb 2004
Location: Mobile, Alabama
Posts: 3,310 bullet User rank is Major (30000 - 40000 Reputation Level)bullet User rank is Major (30000 - 40000 Reputation Level)bullet User rank is Major (30000 - 40000 Reputation Level)bullet User rank is Major (30000 - 40000 Reputation Level)bullet User rank is Major (30000 - 40000 Reputation Level)bullet User rank is Major (30000 - 40000 Reputation Level)bullet User rank is Major (30000 - 40000 Reputation Level)bullet User rank is Major (30000 - 40000 Reputation Level)bullet User rank is Major (30000 - 40000 Reputation Level)bullet User rank is Major (30000 - 40000 Reputation Level) 
Time spent in forums: 1 Month 1 Week 1 Day 19 h 52 m 25 sec
Reputation Power: 327
Send a message via ICQ to bullet Send a message via AIM to bullet Send a message via MSN to bullet
Quote:
Originally Posted by BonRouge
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.


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.

Reply With Quote
  #5  
Old September 13th, 2007, 11:35 AM
BonRouge's Avatar
BonRouge BonRouge is offline
Winemaster
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2004
Location: Sendai, Japan
Posts: 1,354 BonRouge User rank is Second Lieutenant (5000 - 10000 Reputation Level)BonRouge User rank is Second Lieutenant (5000 - 10000 Reputation Level)BonRouge User rank is Second Lieutenant (5000 - 10000 Reputation Level)BonRouge User rank is Second Lieutenant (5000 - 10000 Reputation Level)BonRouge User rank is Second Lieutenant (5000 - 10000 Reputation Level)BonRouge User rank is Second Lieutenant (5000 - 10000 Reputation Level)BonRouge User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 3 Weeks 3 Days 3 h 18 m 20 sec
Reputation Power: 86
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.

Reply With Quote
  #6  
Old September 13th, 2007, 11:44 AM
bullet's Avatar
bullet bullet is offline
Java Junkie
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: Feb 2004
Location: Mobile, Alabama
Posts: 3,310 bullet User rank is Major (30000 - 40000 Reputation Level)bullet User rank is Major (30000 - 40000 Reputation Level)bullet User rank is Major (30000 - 40000 Reputation Level)bullet User rank is Major (30000 - 40000 Reputation Level)bullet User rank is Major (30000 - 40000 Reputation Level)bullet User rank is Major (30000 - 40000 Reputation Level)bullet User rank is Major (30000 - 40000 Reputation Level)bullet User rank is Major (30000 - 40000 Reputation Level)bullet User rank is Major (30000 - 40000 Reputation Level)bullet User rank is Major (30000 - 40000 Reputation Level) 
Time spent in forums: 1 Month 1 Week 1 Day 19 h 52 m 25 sec
Reputation Power: 327
Send a message via ICQ to bullet Send a message via AIM to bullet Send a message via MSN to bullet
Quote:
Originally Posted by BonRouge
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.


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.

Reply With Quote
  #7  
Old September 13th, 2007, 01:04 PM
BonRouge's Avatar
BonRouge BonRouge is offline
Winemaster
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2004
Location: Sendai, Japan
Posts: 1,354 BonRouge User rank is Second Lieutenant (5000 - 10000 Reputation Level)BonRouge User rank is Second Lieutenant (5000 - 10000 Reputation Level)BonRouge User rank is Second Lieutenant (5000 - 10000 Reputation Level)BonRouge User rank is Second Lieutenant (5000 - 10000 Reputation Level)BonRouge User rank is Second Lieutenant (5000 - 10000 Reputation Level)BonRouge User rank is Second Lieutenant (5000 - 10000 Reputation Level)BonRouge User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 3 Weeks 3 Days 3 h 18 m 20 sec
Reputation Power: 86
Thanks.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationFTP Help > Automatic upload to server


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT