If you do not have access the principle is simple:
1/Access current time
2/Check if current time-last time you saved data is > output interval time
3/If yes execute journal /command to write data file
Please Login to Report Topic
Please Login to Share Feed