2017-05-01 11:06:06 +01:00
|
|
|
# batch
|
|
|
|
|
|
|
|
> Execute commands at a later time when the system load levels permit.
|
|
|
|
> Service atd (or atrun) should be running for the actual executions.
|
2022-03-09 04:28:57 +00:00
|
|
|
> More information: <https://manned.org/batch>.
|
2017-05-01 11:06:06 +01:00
|
|
|
|
2023-08-09 06:29:02 +01:00
|
|
|
- Execute commands from `stdin` (press `Ctrl + D` when done):
|
2019-01-27 00:12:54 +00:00
|
|
|
|
|
|
|
`batch`
|
|
|
|
|
2023-08-09 06:29:02 +01:00
|
|
|
- Execute a command from `stdin`:
|
2017-05-01 11:06:06 +01:00
|
|
|
|
|
|
|
`echo "{{./make_db_backup.sh}}" | batch`
|
|
|
|
|
2024-02-19 14:13:42 +00:00
|
|
|
- Execute commands from a given [f]ile:
|
2017-05-01 11:06:06 +01:00
|
|
|
|
|
|
|
`batch -f {{path/to/file}}`
|