Jump to content

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


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..

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.