Open admalledd opened 10 years ago
Sounds nice.
Are you planning on extending the command handling for this? You could add a schedule
command which does exactly that, readTabLine()
is protected, so can be called from the plugin. I'm not sure how it is with EventEngine
, though.
Yea the point was a new command for OPs and such (brainstorming here):
/simplecronclone add ...
base for all new "add temp jobs" commands/simplecronclone add cron_once "$CronTimeFormat" "$SCCFILE.scc"
where $CronTimeFormat is the * * * * * *
stuffs from tab.scc/simplecronclone add time_once "$DeltaTimeFormat" "$SCCFILE.scc"
where $DeltaTimeFormat might be "2h" for "2 hours from now", probably max supported will be $num hours, anything further is beyond scope/simplecronclone add event_once "$Event" "$SCEFILE.sce"
(note the quotes around things, would make my life of parsing easier)/simplecronclone add event "$Event" "$SCEFILE.sce"
Repeat script forever now on $Event until server restart.Note that all the FILE types up there "should" also be able to be the one-line syntax as well. Hence they are also wrapped in quotes. Again though, that syntax I just came up with now on the spot, might be better ways.
Sounds good.
If possible I'd try to scrap the "add" part, as it doesn't really provide something meaningful. My suggestions to the pot of brains:
I'm not sure about the last one, though.
If it is possible I think it would be cool to have the same command for events and normal scheduling, differentiating the two only by the rest of the command.
The idea is that sometimes you want a "one off" job that will run until the next server reboot and then be forgotten about.
The counter use-case of saving these temp jobs to disk is irrelevant by the idea that users should edit via external programs the
tab.sc{e,c}
files instead and then ask SCC to restart thus reloading the tab files.Two "types" of one-offs for consideration:
Primary use case is the idea of I was wanting to do some work on my servers but wanted them to only do it when empty and only do it the one time. (shut down servers on empty single time for upgrade work)