There may be some hints for you in the Enterprise Administration Module lesson on Configuring Controllers and Agents part Agent Task Scheduling. While I am just learning, I think that the business of “CRONTAB”-style ( As in from Unix or Linux type system ) time is best explained in that lesson. Just a reminder, the EAM is an Optional Module, therefore “Your mileage from this may vary” abbreviated YMMV. I hope that helps.
Well, the issues is the way I have it set up currently (I think). Currently, I have the Gateway script set up to run at two specified times a day, as you can see from the script even though it’s a bit jumbled. The gateway script is set to check every hour, but the way I have it set now–and I’m not sure if it works–is to have the:
I’m not entirely sure that will work at all ha.
Also, I didn’t copy some of the variable definitions to keep things a bit cleaner.
If you put your script in as preformatted text by using ``` before and after the script it will be a little more readable for everyone.
if hour==01 and minute==45:
elif hour==22 and minute==45:
I’m not sure where exactly you’re getting the hour and minute from the script you posted, however, if the Gateway Script is configured to run every hour, then all you need to do is change your script so that instead of filtering for 2 distinct times in a day you filter for two distinct times in an hour, and change the script configuration to run every minute.
Are you trying to run this script as a gateway script every hour, or are you wanting to run a script on the gateway every hour? For the latter, I would create an expression tag that triggers at the respective times, and put the script as a tag change event script.