1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 06:02:18 +02:00

at, batch: update pages (#14220)

Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
This commit is contained in:
Managor 2024-10-16 10:08:23 +03:00 committed by GitHub
parent ef4b9a3f19
commit 9d2d2147ce
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 14 additions and 36 deletions

View file

@ -1,16 +1,24 @@
# at
> Execute commands once at a later time.
> Service atd (or atrun) should be running for the actual executions.
> Results will be sent to the users mail.
> More information: <https://manned.org/at>.
- Execute commands from `stdin` in 5 minutes (press `Ctrl + D` when done):
- Start the `atd` daemon:
`systemctl start atd`
- Create commands interactively and execute them in 5 minutes (press `<Ctrl> + D` when done):
`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 "{{./make_db_backup.sh}}" | at 1000`
`echo "{{command}}" | at 1000`
- Execute commands from a given file next Tuesday:

View file

@ -1,17 +1,7 @@
# batch
> Execute commands at a later time when the system load levels permit.
> Service atd (or atrun) should be running for the actual executions.
> More information: <https://manned.org/batch>.
> This command is an alias of `at`.
- Execute commands from `stdin` (press `Ctrl + D` when done):
- View documentation for the original command:
`batch`
- Execute a command from `stdin`:
`echo "{{./make_db_backup.sh}}" | batch`
- Execute commands from a given [f]ile:
`batch -f {{path/to/file}}`
`tldr at`

View file

@ -1,20 +0,0 @@
# at
> Executes commands at a specified time.
> More information: <https://manned.org/at.1>.
- 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}}`