What I am trying to do now is verify the items.txt file has the current date as well as existing and I wasn’t sure how to use the current date would it be something like this?:
exists file "/beanstore-client/dg/util/Monitoring_Tool/items.txt" and current date of it as time
I want to always check the current date is the creation date of the file as we get a fresh batch of items.txt files every day so anything older than today’s date isn’t relevant.
So something like this should be true if the file was created today correct? :
exists file "/beanstore-client/dg/util/Monitoring_Tool/items.txt" and modification time of file "/beanstore-client/dg/util/Monitoring_Tool/items.txt" < 1*day