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.


trevinom
2012-08-14T17:33:09Z
Previous to this product, we were using a scripting tool and wrote out every action it took to a log that we could then look at if problems arose to track down an issue.
Recently, we had a situation where we wanted to see what the name of the file was that we processed through one of our VisualCron jobs. Since each iteration of the job overwrites previous executions, I was unable to reproduce the name of the file that was originally processed. The server log doesn't keep track of individual items that are processed in a task.
Is there any way to have VisualCron leave a track, at the granular level, of the output of the actions that it took while completing it's job?
Sponsor
Forum information
ErikC
2012-08-15T05:48:49Z
Hi trevinom,

What you can do is using a notification on a task on complete.
This notification can write any variable to file.
Use a date time stamp in there also, so you know when things happened.

Reagrds
Erik
Uses Visualcron since 2006.
trevinom
2012-08-15T12:37:39Z
Thank you ErikC!!
That is exactly the functionality I was looking for.
I hadn't explored that part of the product.
ErikC
2012-08-15T12:52:47Z
Thanks,

I use the same file notification for every task (yes every task).

My settings:
-Append to log checked
-path: driveletter:\path\{JOB(Active,Name)}-{DATEFORMAT(yyyyMMdd)}.txt
Body:
{TASK(Active,Name)}
Result:         {TASK(Active,Result)}
Last run:       {TASK(Active,LastRun,M/d/yyyy h:mm:ss.ff tt)}
Last exited:    {TASK(Active,LastExited,M/d/yyyy h:mm:ss.ff tt)}
Execution time: {TASK(Active,ExecutionTime)} seconds
------------------------------------------------------------------------------------------------------------------
Output:
{TASK(Active,StdOut)}
---------------
Error output:
{TASK(Active,StdErr)}
------------------------------------------------------------------------------------------------------------------

This results in a log file for every job per day and in there you can see all the standard task information.

Regards,
Erik
Uses Visualcron since 2006.
trevinom
2012-08-15T13:38:31Z
That's kinda what I started doing it as soon as you mentioned it.
Thank you for the code, I pretty much cut and pasted it into the notification.
Much appreciated.
Users browsing this topic
Scroll to Top