Page 1 of 1

Return Director job log to GoAnywhere Command

Posted: Wed Mar 18, 2015 11:55 am
by WayneL
We are using GoAnywhere Command (GACMD) to launch Director Projects from our scheduling software. We would like to return the contents of the job log - whether successful or not - back to the invoking scheduler software. Doing so will keep all information on any file transfer in the scheduling software itself, and will therefore reduce the need to log directly into GoAnywhere Director.

We determined it is possible to set a variable to the contents of the job log - ${system.job.log}. The contents of that set variable (the job log up to the point where the variable was set) will appear back in the scheduling software if the set variable is part of the <message> found in a Raise Error task. But the log is not complete and does not appear if the Director Project completed successfully.

Do you have any suggestions on how we can get a more complete copy of a job log sent back to our scheduling software - whether the Director Project was successful or not?

Re: Return Director job log to GoAnywhere Command

Posted: Tue Mar 24, 2015 1:12 am
by Support_Rick
I would suggest that you post the Job Logs to a common file location naming them after the JobID. Return the JobID to your Calling Program. Then, as needed you can look for the file based on JobID.

This will reduce the amount of data that needs to be passed back and forth, but still give you access to the completed job logs.