Context
I need to warn my website's users of events by sending them an email when they're offline or display them a javascript notification if they're online (using websockets/push events).
Some of these events should be triggered after a certain amount of time (for specific app/business logic).
I won't use sleep() since it may causes performances issues.
How would you manage to do that using Crontab and/or CLI ?