Coder Social home page Coder Social logo

scripthelper's Introduction

== Welcome to ScriptHelper

ScriptHelper is a POSIX shell library of common functions, to facilitate code reuse.

First, I've wrote ScriptHelper to be able to send bash script to other users and
always know what's wrong when they failed. This was the purpose of the CMD command,
which role is to exec a command, log stdout & stderr, and check the return status.

Then, I've added some functions, I wrote several times.

== Description of contents

*.lib.sh : library files
tests/* : test files

Each file have description of their functions, usage, options, etc..

== List of libraries

I try to make one lib for each purpose :
 - message.lib.sh : messaging functions.
 - exec.lib.sh    : execute commands, check the return code, Rollback feature
 - ask.lib.sh     : usefull when you have to ask question to the user
 - cli.lib.sh     : create easily Command Line Interface for interactive scripts
 - conf.lib.sh    : deal with configuration file (where data are stored with key=value format)
 - lock.lib.sh    : take a resource by locking it
 - mail.lib.sh    : to prepare and send mails
 - mutex.lib.sh   : mutex for allocating resource
 - mysql.lib.sh   : to make mysql scripts
 - random.lib.sh  : random number generator
 - record.lib.sh  : record tty session

== Install

read INSTALL file

== Usage

ScriptHelper is used in those projects :
 - Tosca (http://tosca-project.net/) - deployment scripts
 - sshGate (http://github.com/Tauop/sshGate) - ssh proxy in bash
 - ScriptCollection (http://github.com/Tauop/ScriptCollection) - little script to make specify tasks

scripthelper's People

Contributors

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