mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-11 23:47:30 +00:00
Update cheatsheets
This commit is contained in:
23
tldr/linux/batch
Normal file
23
tldr/linux/batch
Normal file
@@ -0,0 +1,23 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# batch
|
||||
|
||||
> Execute commands at a later time when the system load levels permit.
|
||||
> Results will be sent to the user's mail.
|
||||
> See also: `at`, `atq`, `atrm` `mail`.
|
||||
> More information: <https://manned.org/batch>.
|
||||
|
||||
- Start the `atd` daemon:
|
||||
|
||||
`systemctl start atd`
|
||||
|
||||
- Execute commands from `stdin` (press `<Ctrl d>` when done):
|
||||
|
||||
`batch`
|
||||
|
||||
- Execute a command from `stdin`:
|
||||
|
||||
`echo "{{./make_db_backup.sh}}" | batch`
|
||||
Reference in New Issue
Block a user