Jump to content

[SOLVED] How to detect a new file so it can be uploaded to other server via FTP?


codexx

Recommended Posts

Hi Everyone,

 

I have a Windows Server running that converts video files that my users upload.

 

My main web server is on Redhat using Cpanel, the upload script uploads the raw video file to my windows server via ftp.

 

My windows server has a program I purchased that automatically scans the folder and then when it finds a new file converts it to a FLV video file.

 

Is there anyway I can write a script and use a cronjob to detect when a new file is inserted to the folder c:/complete and upload it back to the web server via ftp?

 

Thanks in Advance,

Sean :)

You can but having the program store the filenames in the folder and then compare on the next run, just an idea, if your convert running from a windows server which you have access to, then you can get some software thats mapping drives via a the FTP protocal you could then change the output path of the convert to the mapped FTP drive and your done..

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.