Files
cheatsheet-tldr/batch
2024-02-21 11:19:49 +00:00

23 lines
510 B
Plaintext

---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# 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>.
- Execute commands from `stdin` (press `Ctrl + D` when done):
`batch`
- Execute a command from `stdin`:
`echo "{{./make_db_backup.sh}}" | batch`
- Execute commands from a given [f]ile:
`batch -f {{path/to/file}}`