Skip to content

PKazanjian/ProgressBar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BASH progressbars for processes and APIs

Example: "processes.sh" displays the progress of 15 containers starting

alt text

If you wish to measure the progress of your containers just edit these two items:

  1. Change the _f100 variable on line 6 to number of your total containers produced by your command or commands (see line 21)
  2. Change the command on line 21 to the command or commands used to start your containers and append > /dev/null 2>&1 & to each one

To see examples: http://thekettlemaker.com/progressbar.html

Example: "apis.sh" displays the progress of 22 containers starting and when 17 APIs are ready

Progress: [░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░] 100%

If you wish to measure the progress of different APIs, then change these four items:

  1. Change the command on line 24 to your command or commands used to start your containers and append > /dev/null 2>&1 & to each one
  2. Change the y variable on line 8 to number of your total containers produced by your command or commands (see line 24)
  3. Change the _f100 varible on line 7 to include the total containers + total APIs
  4. Change the command used to test API status on line 46 and change the filter to look for "ready" messages

This video will walk you thru it! https://www.youtube.com/watch?v=VxmL_6eX7Pw

Example: "tar.sh" displays the progress of extracting a specific tar file

user@host$ sudo ./tar.sh

205MiB 84MiB/s 00:02 [========================================>] 100% ETA 2

To use this with your file:

  1. Replace your the extracted file size "MB" with yours on line 8 "_f100"
  2. Replace the tar file on lines 9 and 21
  3. Replace the extracted directory name on line 38
  4. Run the script as "root"

Example: "atar.sh" displays the progress of extracting any tar file

user@host$ sudo ./atar.sh your.tar.gz

205MiB 84MiB/s 00:02 [========================================>] 100% ETA 2

  1. Pass your tar as an argument to the script!

YouTube videos will follow shortly for the tar examples : )

About

A repo that contains BASH progress bars to measure APIs, Processes, and Installations (under dev).

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages