2017-05-01 17:06:06 +07:00
|
|
|
# at
|
|
|
|
|
|
|
|
> Execute commands once at a later time.
|
2024-10-16 10:08:23 +03:00
|
|
|
> Results will be sent to the users mail.
|
2022-03-09 01:28:57 -03:00
|
|
|
> More information: <https://manned.org/at>.
|
2017-05-01 17:06:06 +07:00
|
|
|
|
2024-10-16 10:08:23 +03:00
|
|
|
- Start the `atd` daemon:
|
|
|
|
|
|
|
|
`systemctl start atd`
|
|
|
|
|
|
|
|
- Create commands interactively and execute them in 5 minutes (press `<Ctrl> + D` when done):
|
2017-05-01 17:06:06 +07:00
|
|
|
|
2018-07-20 16:11:15 +08:00
|
|
|
`at now + 5 minutes`
|
2017-05-01 17:06:06 +07:00
|
|
|
|
2024-10-16 10:08:23 +03:00
|
|
|
- Create commands interactively and execute them at a specific time:
|
|
|
|
|
|
|
|
`at {{hh:mm}}`
|
|
|
|
|
2023-08-09 07:29:02 +02:00
|
|
|
- Execute a command from `stdin` at 10:00 AM today:
|
2017-05-01 17:06:06 +07:00
|
|
|
|
2024-10-16 10:08:23 +03:00
|
|
|
`echo "{{command}}" | at 1000`
|
2017-05-01 17:06:06 +07:00
|
|
|
|
|
|
|
- Execute commands from a given file next Tuesday:
|
|
|
|
|
|
|
|
`at -f {{path/to/file}} 9:30 PM Tue`
|