Determine job-id for running "sync cloud task"

HeMaN68

Dabbler
Joined
May 12, 2020
Messages
16
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.
  • 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?
(I already tried the "env" command in a pre- and post-script but found no clues in there)
 
Top