Hi,
I’m looking for some help / thoughts on something I’m looking to implement.
Every day at a certain time I want to run a set of commands that will be different every day. Each command will only be run once. I’ve had two thoughts on how to do this, can anyone suggest which may be better and help me with some parts of it please?
-
I have a scheduled task that runs each day and calls a script with a name based on the current date. This seems a simple approach, however these commands will not be added at once so I’d need a way of appending the script to add commands. Is this possible to do via the API or a non-interactive console command (i.e. not by opening the editor up)?
-
I have a scheduled task that runs every script that is named [currentdate]+randomnumber. This method means I wouldn’t have to append the script, instead create a new one for each command. To do this I’d need to use some form of wildcard.
Would be interested to hear your thoughts on these two approaches.
Thanks