2016-06-25 17:16:20 +01:00
|
|
|
# at
|
|
|
|
|
|
|
|
> Executes commands at a specified time.
|
2021-03-30 20:01:46 +01:00
|
|
|
> More information: <https://man.archlinux.org/man/at.1>.
|
2016-06-25 17:16:20 +01:00
|
|
|
|
2017-04-28 23:34:51 +01:00
|
|
|
- Open an `at` prompt to create a new set of scheduled commands, press `Ctrl + D` to save and exit:
|
2016-06-25 17:16:20 +01:00
|
|
|
|
2020-07-17 17:59:21 +01:00
|
|
|
`at {{hh:mm}}`
|
2016-06-25 17:16:20 +01:00
|
|
|
|
|
|
|
- Execute the commands and email the result using a local mailing program such as sendmail:
|
|
|
|
|
2020-07-17 17:59:21 +01:00
|
|
|
`at {{hh:mm}} -m`
|
2016-06-25 17:16:20 +01:00
|
|
|
|
|
|
|
- Execute a script at the given time:
|
|
|
|
|
2020-07-17 17:59:21 +01:00
|
|
|
`at {{hh:mm}} -f {{path/to/file}}`
|
2020-05-03 13:12:22 +01:00
|
|
|
|
|
|
|
- Display a system notification at 11pm on February 18th:
|
|
|
|
|
|
|
|
`echo "notify-send '{{Wake up!}}'" | at {{11pm}} {{Feb 18}}`
|