Skip to content

spektom/shell-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

shell-utils

Various shell utilities

jp.sh - Job pool

This utility allows creating a named job pool limited by specified size, and run some commands through it. That means that if a pool size is N, at most N commands will be run simultaneously, others will wait until a slot will be freed.

For example, to run at most 3 processes of cURL when downloading a lot of files, wrap your cURL commands as follows:

./jp.sh "My Download Pool" 3 curl http://site1/...
./jp.sh "My Download Pool" 3 curl http://site2/...
./jp.sh "My Download Pool" 3 curl http://site3/...
...
Executing
USAGE: ./jp.sh <ID> <limit> <command>

Where:
  <ID>       Job pool identifier
  <limit>    Job pool size
  <command>  Command to run

sysinfo.sh - System information collector

System information gathering utility, which you may have to run when reporting on an issue from a running system.

Releases

No releases published

Packages

No packages published

Languages