2017-05-01 17:06:06 +07:00
|
|
|
# batch
|
|
|
|
|
2024-12-14 13:57:05 +02:00
|
|
|
> 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>.
|
2017-05-01 17:06:06 +07:00
|
|
|
|
2024-12-14 13:57:05 +02:00
|
|
|
- Start the `atd` daemon:
|
2019-01-27 01:12:54 +01:00
|
|
|
|
2024-12-14 13:57:05 +02:00
|
|
|
`systemctl start atd`
|
|
|
|
|
2025-03-09 03:23:24 +02:00
|
|
|
- Execute commands from `stdin` (press `<Ctrl d>` when done):
|
2024-12-14 13:57:05 +02:00
|
|
|
|
|
|
|
`batch`
|
|
|
|
|
|
|
|
- Execute a command from `stdin`:
|
|
|
|
|
|
|
|
`echo "{{./make_db_backup.sh}}" | batch`
|