I am trying to create a script that will email me a summary and the log of a completed cloud sync task.
I already found out the log files of cloud sync tasks are stored here: </tmp/middlewared/jobs>
The log files are named after a number <12345.log>, but the number keep changing every time a job is run.
I already found out the log files of cloud sync tasks are stored here: </tmp/middlewared/jobs>
The log files are named after a number <12345.log>, but the number keep changing every time a job is run.
- Enyone happens to know if the jobnumber is stored in a variable I can use in a post-script for a task. or any other way I can get to know which log-file to parse?