mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 08:22:08 +02:00
at, batch: update pages (#14220)
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
This commit is contained in:
parent
ef4b9a3f19
commit
9d2d2147ce
3 changed files with 14 additions and 36 deletions
|
@ -1,16 +1,24 @@
|
||||||
# at
|
# at
|
||||||
|
|
||||||
> Execute commands once at a later time.
|
> 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>.
|
> 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`
|
`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:
|
- 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:
|
- Execute commands from a given file next Tuesday:
|
||||||
|
|
||||||
|
|
|
@ -1,17 +1,7 @@
|
||||||
# batch
|
# batch
|
||||||
|
|
||||||
> Execute commands at a later time when the system load levels permit.
|
> This command is an alias of `at`.
|
||||||
> Service atd (or atrun) should be running for the actual executions.
|
|
||||||
> More information: <https://manned.org/batch>.
|
|
||||||
|
|
||||||
- Execute commands from `stdin` (press `Ctrl + D` when done):
|
- View documentation for the original command:
|
||||||
|
|
||||||
`batch`
|
`tldr at`
|
||||||
|
|
||||||
- Execute a command from `stdin`:
|
|
||||||
|
|
||||||
`echo "{{./make_db_backup.sh}}" | batch`
|
|
||||||
|
|
||||||
- Execute commands from a given [f]ile:
|
|
||||||
|
|
||||||
`batch -f {{path/to/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}}`
|
|
Loading…
Add table
Reference in a new issue