Horje
bash monitoring background jobs Code Example
bash monitoring background jobs
#!/bin/bash

# when running "some commands" in the background in your script with '&' 
# and want to wait until they are finished, 
# you can check the number of background jobs in a loop with the jobs command

while [[ $(jobs -r | wc -l) -gt 0 ]]; do
sleep 1
done




Shell

Related
how to install Klavaro Code Example how to install Klavaro Code Example
sed variable instead of file Code Example sed variable instead of file Code Example
Configure jfrog cli from command line Code Example Configure jfrog cli from command line Code Example
./RsaCtfTool.py: command not found kali linux Code Example ./RsaCtfTool.py: command not found kali linux Code Example
creating a branch from a commit Code Example creating a branch from a commit Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
12