Giter VIP home page Giter VIP logo

eta's Introduction

eta - A tool for monitoring progress and ETA of an arbitrary process

eta is a command line tool that takes two arguments:

  1. A target value
  2. A command to inspect the current progress value

eta will execute the given command once every second, look for the first number in the commands output, and estimate the time until it reaches the given target value.

When using --cont, command runs continuously, and eta will read the output line by line to determine progress.

See man page for full documentation.

Installation

Ubuntu

sudo add-apt-repository ppa:aioobe/ppa
sudo apt-get update
sudo apt-get install eta

Other

Download repo, build and install manually:

make
make install

Example Usage

Example 1: File copy

Use du -bs to monitor the size of a directory.

To avoid running an ssh command every second, you can lower the rate with --interval or use --cont and a single ssh invocation with a while loop. (Examples 3 and 4 illustrate the use of --cont.)

Example 2: Monitor file count

Use ls | wc -l to monitor the number of files in a directory.

If the resized directory is initially non empty, you can use --start initial which tells eta to use the first value read (instead of 0) as the 0% progress value.

Example 3: Tailing a log

With --cont the progress command is kept running, and the progress is determined by reading the output line by line continuously.

Example 4: Counting lines

You can use cat -n to add line numbers to the output of a command. The line numbers can then be used as a progress indicator. For example, since tar v... prints one file per line, the progress can be monitored by counting lines as follows:

Example 5: Decreasing values

Use --down if the progress value decreases.

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.