tldr/pages/common/at.md

18 lines
474 B
Markdown
Raw Normal View History

# at
> Execute commands once at a later time.
> Service atd (or atrun) should be running for the actual executions.
> More information: <https://man.archlinux.org/man/at.1>.
- Execute commands from standard input in 5 minutes (press `Ctrl + D` when done):
2018-07-20 09:11:15 +01:00
`at now + 5 minutes`
- Execute a command from standard input at 10:00 AM today:
`echo "{{./make_db_backup.sh}}" | at 1000`
- Execute commands from a given file next Tuesday:
`at -f {{path/to/file}} 9:30 PM Tue`