Code Monkey home page Code Monkey logo

progressbar's Introduction

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 : )

progressbar's People

Contributors

pkazanjian avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.