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.
|
2021-03-30 20:01:46 +01:00
|
|
|
> More information: <https://man.archlinux.org/man/at.1>.
|
2017-05-01 11:06:06 +01:00
|
|
|
|
2019-01-27 00:12:54 +00:00
|
|
|
- Execute commands from standard input (press `Ctrl + D` when done):
|
|
|
|
|
|
|
|
`batch`
|
|
|
|
|
2017-05-01 11:06:06 +01:00
|
|
|
- Execute a command from standard input:
|
|
|
|
|
|
|
|
`echo "{{./make_db_backup.sh}}" | batch`
|
|
|
|
|
|
|
|
- Execute commands from a given file:
|
|
|
|
|
|
|
|
`batch -f {{path/to/file}}`
|