Giter Site home page Giter Site logo

bashtools's Introduction

Welcome to send me feedback in github or @huandu on twitter.

List of tools

  • remote
  • colorize
  • platform

The remote script runner: remote

If you usually run remote script with ssh or tools using ssh (e.g. pssh and onall), you will find it’s hard to stop remote script manually. It means, even if your ssh connection is down, the remote running script will keep going until it exits normally. If the remote script consumes lots of resource, this default behavior may cause unconscious bad effect.

This script is designed to resolve this issue. Basically, use it like ‘nice’.

Here is a sample.

ssh [email protected] remote tail -f your-log

With remote, you can safely stop this ssh connection any time.

Simple command line output highlighter: colorize

Colorize is similar to grep with --color option, except that it’s a bit more user-friendly. For people like me who don’t want to remember XTerm color code, colorize can save you.

Here is how to use it.

tail -f your.log.file | colorize yellow '^FATAL:'

Simple platform detection script: platform

Platform script is to detect and print platform information in bash.

Sample usage.

platform

Above command will print following information on MacOSX.

type:           darwin
kernal_version: 12.4.0
dist:           Darwin
dist_version:   12.4.0

And following output is the result on Ubuntu server.

type:           linux-gnu
kernal_version: 3.5.0-23-generic
dist:           Ubuntu
dist_version:   12.04

bashtools's People

Contributors

huandu avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

mt916

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.