2025-03-14 21:59:59 -06:00
|
|
|
# at
|
|
|
|
|
|
|
|
|
|
> Execute commands once at a later time.
|
|
|
|
|
> Results will be sent to the users mail.
|
|
|
|
|
> More information: <https://manned.org/at>.
|
|
|
|
|
|
2025-03-19 19:23:44 -06:00
|
|
|
- Create commands interactively and execute them in 5 minutes (press `<Ctrl d>` when done):
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
`at now + 5 minutes`
|
|
|
|
|
|
|
|
|
|
- Create commands interactively and execute them at a specific time:
|
|
|
|
|
|
|
|
|
|
`at {{hh:mm}}`
|
|
|
|
|
|
|
|
|
|
- Execute a command from `stdin` at 10:00 AM today:
|
|
|
|
|
|
|
|
|
|
`echo "{{command}}" | at 1000`
|
|
|
|
|
|
|
|
|
|
- Execute commands from a given file next Tuesday:
|
|
|
|
|
|
|
|
|
|
`at -f {{path/to/file}} 9:30 PM Tue`
|
2025-04-03 20:36:56 -06:00
|
|
|
|
|
|
|
|
- List all queued jobs for the current user (same as `atq`):
|
|
|
|
|
|
|
|
|
|
`at -l`
|
|
|
|
|
|
|
|
|
|
- View a specied job:
|
|
|
|
|
|
|
|
|
|
`at -c {{job_number}}`
|