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.


pbunyon99
2009-08-17T18:17:40Z
Hi.. I want to use the sFTP task to download a file, but I need to apply some logic on which file, and how to maintain historical files.
For Example..
1) I always want to 'latest' file... noting that the name of the file includes the date,
but the date may or may not be the current date.
2) I want to delete files that are over 30 days old.

So, my questions are ...
These two scenarieos require some logic, which can easily be done on mapped drives
in Version 4.9.4 ,so can the latest version of VC do this to the sFTP source ?

Do you think the only way is to write custom commands to accomplish this ?

Thanks.
Sponsor
Forum information
Support
2009-08-19T09:11:39Z
I am moving this to Feature requests. I think the only good way is for us to implement delete (for example) with more settings (like date filter).
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
ErikC
2009-08-20T07:53:24Z
I have a simular situation.
I have to download the newest file from a (s)ftp site, but I don't know what the newest file is.

What I did was:
- Download every file found in one dir not overwriting existing files;
- Have a text file containing the allready processed filenames;
- Use a script (I used perl for this) to compare the downloaded files with this text file;
- Copy the missing files to a different folder and process them;
- Last step is to add the just processed filenames in the text file, so next downloads will not use these files anymore.

This works for me for several jobs.

I has one negative aspect: you have a ftp mirror dir on your site, so I hope the files are not soo big.
What you can do is to empty the ftp mirror folder (every time/sometimes), but your download task will run much longer.

Regards
Erik

Uses Visualcron since 2006.
viper8
2009-08-26T20:12:12Z
Support wrote:

I am moving this to Feature requests. I think the only good way is for us to implement delete (for example) with more settings (like date filter).



Yeah this is somewhat related to my feature request found here:
http://www.visualcron.com/forum.aspx?g=posts&t=631 

We would REALLY like to see this functionality. The lack of it has made it so we can't run all of our jobs using VisualCron. Once this is available we'll be 100% VC! 😁
Users browsing this topic
Scroll to Top