I'm not thinking about pure scheduled tasks, but rather things where a daemon in the background will automatically trigger a script when certain conditions are met.
For those who have used Tasker on Android, you probably have an idea of what I'm talking about already. For those who don't, this would include things like:
- automatically triggering scripts when a Macbook is plugged in or unplugged; or
- having the computer automatically go into sleep mode when it gets a certain message (via an open port, or email, or whatever), and similarly wake up again; or
- automatically opening a connection to a file server on the same network at a certain time of day; and so on.
I've seen assorted software tools to do this kind of thing piecemeal, but I'd be extremely curious in finding any mostly-integrated way, premade or homebrew, to accomplish the same kind of flexibility in automation that I've gotten used to on my phone.
I also figure this question will be most helpful if applied across the range of OSes rather than more limited.