Apparently #Emacs has a builtin/plugin "run a program at a given time" functiona...
ed(1) conference @ed1conf@bsd.network
Apparently #Emacs has a builtin/plugin "run a program at a given time" functionality.
Fortunately POSIX already provides an at(1) command so if you find yourself editing in ed(1) and want to schedule a task:
$ ed file.txt
3141
! echo "play alert.mp3 | at "+20 minutes"
If your tool expects X running, you can set $DISPLAY as part of the command:
! echo DISPLAY=:0.0 xeyes | at noon
or
! echo DISPLAY=:0.0 xmessage "Go home" | at 5:00pm
⸻
NB: on some systems, the at(1) processing gets launched by a cron job that runs every 5 minutes, so you might not have more fine-grained resolution down to the minute.