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.


hangeles
2012-06-12T18:51:16Z
Im trying to create a generic task to log, for example, copy file errors.

I'd like to have a task using copy file to call my 'event log write - copy file failed' task so that it can log pertinent information:

Original Task name where error orrurred:
Name of file that failed to copy:
Time original task kicked off:

The purpose for using 'Event Log - Write' is to be able to log an error, wich notifications cannot

Is this possible?
Sponsor
Forum information
Support
2012-06-12T21:31:53Z
In the near future we will delete all existing Notifications and provide a hybrid "TaskNotifications" with all the latest Tasks.

Meanwhile there are a couple of ways. You can set the Task to go to a certain Task (Event log Task) on error. You control this in the "On error" tab. To prevent it to run every time you can create a Condition that check previous Task exit code and tell it to not run if it is 0 (success).
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
hangeles
2012-06-12T21:35:33Z
I'm writing the message I'd like logged to a file using a 'file notification' on failure. I watch for a 'change' event on that file in another task and trigger an 'Event log - Write' task with the content in the file.

However when I change the content on the file, the trigger does not kick off. Am i using the 'Change' file trigger incorrectly?
Support
2012-06-12T21:37:34Z
You should be able to use "Changed" together with "Last write". Please try with a local file first. (you need to save the file after editing of course)
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
hangeles
2012-06-12T21:47:51Z
Yes! I did not understand what the Notify filters were about. This worked

Thanks
Scroll to Top