Community forum

Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


J Kruger
2010-06-14T10:45:00Z
Allow FTP transfers to be controlled by trigger file (eg: Only download files from ftp://site.com  /folder if starter.trg exists).

So basically we have providers who drop files into an FTP folder and, ideally, as soon as the file hits the folder the file event trigger starts the download.

Thanks 🙂
Sponsor
Forum information
J Kruger
2010-06-14T11:49:17Z
Sorry, think I need to clarify:

What we want is for the file trigger to activate ONLY if a particular file is dropped into the FTP folder - so even if they drop 5 of *.csv, the download doesn't happen. If they then drop in example.txt THEN the whole lot downloads. The download should only happen when example.txt hits the folder.

Hope that's more clear now :)

ErikC
2010-06-15T07:46:18Z
Hi J Kruger,

For the time beeing you can use a condition for this.
Download all the files you would expect there to be, and check with a acondition if this is the case.
If so, continue the job, if not, stop the job.
You could do this check frequently with a time trigger.

Regards,
Erik
Uses Visualcron since 2006.
J Kruger
2010-06-15T15:29:09Z
I don't think that works with secure FTP... at least I can't get it to work with a condition.

Do you have an example of how to set the condition up and what actions to set?
ErikC
2010-06-15T15:31:55Z
Hi,

The condition is on the next task after the download. So it has nothing to do with the FTP connection type.
You check the downloaded file locally.

Regards
Erik
Uses Visualcron since 2006.
J Kruger
2010-06-15T15:38:13Z
Ah right. No, that won't work for us. We need the download to happen only IF this particualr file is present. Downloading and THEN checking if the file is there is no good because there are other jobs which pick these files up and move them on once they're downloaded from the server.

This one file is in a different format and contains data relevant to the others that will need to be downloaded at the same time. So even if a provider places files in this folder over hours or even days, nothing should be downloaded until this one unifying trigger file is present. Then they can ALL go.
ErikC
2010-06-15T16:02:22Z
You can download the files in a temp folder. Do the condition on that folder and if the files are good, copy the files to the process folder where other jobs are looking.

Regards,
Erik
Uses Visualcron since 2006.
nprinslo
2010-06-24T12:41:41Z
Erik,

A useful option, however in these scenarios, the files need to remain on the providers site, as there are times when they replace existing files on the download site, until they are ready for us to download the files, which is when they would place a trigger file such as "start.trg". we then download all the correct files, and the trigger file is deleted.

This is currently how we use it with our exisitng FTP product, which it seems we will need to keep using for these types of jobs until we have a working replacement.
Support
2012-07-16T10:06:56Z
Please test our new FTP Trigger:

http://www.visualcron.co....aspx?g=posts&t=2575 
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top