batch command in Linux with Examples
batch command is used to read commands from standard input or a specified file and execute them when system load levels permit i.e. when the load average drops below 1.5.
Syntax:
batch
It is important to note that batch does not accepts any parameters.
Other Similar Commands:
- atq: Used to display the queue of pending jobs(this is because at and batch both uses the same job queue).
- atrm: Used to remove the specified job from job queue.
Example:
- Working with the batch command.
top

- Executing some commands using batch.

- See the average load is lower than 1.5 that’s why the job queue is empty and command executed instantly.
- Use ctrl +d when done giving commands to batch.
Recommended Posts:
- cut command in Linux with examples
- apt-get command in Linux with Examples
- until command in Linux with Examples
- ip command in Linux with examples
- cmp Command in Linux with examples
- atq command in linux with examples
- last command in Linux with Examples
- ed command in Linux with examples
- rev command in Linux with Examples
- cp command in Linux with examples
- for command in Linux with Examples
- sum command in Linux with Examples
- let command in Linux with Examples
- env command in Linux with Examples
- ssh command in Linux with Examples
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.



