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


Matthew
2013-09-05T17:20:42Z
Hello!

I just wanted to get a community check to make sure I'm interperating this right.

I'm in the process of writing a logging task for a HTTP get. The big 4 bit things I need in this log are

Job name
Start time
Finish time
and HTTP GET output.

I think I got all of these down but I'm not sure about "finish" time. Can I assume that "Last Exited" is the time in which the task finishes?


What I have setup for my "write to file" Highlighted area is just added fluff

JOB: {JOB(6990b545-edc0-4fe1-aa45-5d819e78165c|Name)}
START TIME: {DATEFORMAT(M/d/yyyy h:mm:ss tt)}
END TIME: {TASK(149ca88d-aa44-4e59-958b-ddbda3d911c3,LastExited,M/d/yyyy h:mm:ss tt)}
Exit Code: {JOB(PrevTask|ExitCode)}
Result Code: {JOB(PrevTask|Result)}
Error Output: {TASK(PrevTask,StdErr)}

HTTP GET OUTPUT:
{TASK(149ca88d-aa44-4e59-958b-ddbda3d911c3,StdOut)}
Sponsor
Forum information
Support
2013-09-05T19:42:08Z
It looks correct, but for easier recycling of Variables please use Active and PrevTask (if the HTTP Task is the last Task of the Job).

Like this:

JOB: {JOB(Active|Name)}
START TIME: {DATEFORMAT(M/d/yyyy h:mm:ss tt)}
END TIME: {TASK(PrevTask,LastExited,M/d/yyyy h:mm:ss tt)}
Exit Code: {JOB(PrevTask|ExitCode)}
Result Code: {JOB(PrevTask|Result)}
Error Output: {TASK(PrevTask,StdErr)}

HTTP GET OUTPUT:
{TASK(PrevTask,StdOut)}
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
rfiocchi
2013-09-06T10:20:49Z
Which differences between {JOB(PrevTask|Result)} and {JOB(Active|Result)} ?
Support
2013-09-06T10:25:24Z
PrevTask only exists for TASK and not for JOB.

{JOB(PrevTask|Result)} - this will never work.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top