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.


dennyc
2011-05-29T23:38:32Z
Complete newbie here...

I am downloading from an ftp site. If there is no file to get, i don't want to log anything.
If there is a file and i download it successfully, i want to log that it was successful and the filename to the DB.
If it fails, i still want to log the filename, but as a failure.

I think i can create two tasks that have conditions to log. How do i know what filename or filenames were retrieved?

Also, is there anyway to log to a text file the actual ftp session information? I looked at the variables and didn't see anything. Thanks!


Sponsor
Forum information
ErikC
2011-05-30T07:53:02Z
Hi dennyc,

Welcome to the forum!

dennyc wrote:

I think i can create two tasks that have conditions to log. How do i know what filename or filenames were retrieved?


You could place the files in a certain folder and use a different job with a filetrigger on it, or you could make an extra command task executing a CMD /c DIR /b in this folder to see the filenames. And there are more...
dennyc wrote:

Also, is there anyway to log to a text file the actual ftp session information? I looked at the variables and didn't see anything. Thanks!


You can use the output of the ftp task and write this to a file using the file write task.

Regards
Erik


Uses Visualcron since 2006.
Scroll to Top