Giter Site home page Giter Site logo

simhaonline / progressbar Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pkazanjian/progressbar

0.0 0.0 0.0 43 KB

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

License: MIT License

Shell 100.00%

progressbar's Introduction

BASH progressbars for processes and APIs

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

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

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 zip file

This is just a test file. It measures the extraction progress of a specific tar file.
To use this with your file:

  1. Replace your tar file with the one specified on line 20
  2. Replace the extracted file's disk usage in MB on line 7 "_f100"
  3. Replace the estimated time values on line 23. For me it was "4" seconds. This was determined using time (See below YouTube video)
  4. Run the script as "root" user

To do's (Allow the script to be used to with any zip file):

  1. Automate file by passing as argument to script
  2. Automate determining extracted "Disk Usage".. maybe using gzip or unzip
  3. Automate ETA

YouTube video will follow shortly : )

progressbar's People

Contributors

pkazanjian 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.