tldr/pages/linux/at.md
2020-07-17 17:59:21 +01:00

472 B

at

Executes commands at a specified time.

  • Open an at prompt to create a new set of scheduled commands, press Ctrl + D to save and exit:

at {{hh:mm}}

  • Execute the commands and email the result using a local mailing program such as sendmail:

at {{hh:mm}} -m

  • Execute a script at the given time:

at {{hh:mm}} -f {{path/to/file}}

  • Display a system notification at 11pm on February 18th:

echo "notify-send '{{Wake up!}}'" | at {{11pm}} {{Feb 18}}