Bashinator: Bash Shell Script Framework

Bashinator is a framework for bash shell scripts.

Features:

Quickstart

On Gentoo Linux:

# add the wschlich overlay
layman -a wschlich
# install bashinator
emerge bashinator
# install the bashinator example application from the doc directory to the standard location
install -D -o root -g root -m 0644 /usr/share/doc/bashinator-*/example/bashinator.cfg.sh /etc/example/bashinator.cfg.sh
install -D -o root -g root -m 0644 /usr/share/doc/bashinator-*/example/example.cfg.sh /etc/example/example.cfg.sh
install -D -o root -g root -m 0644 /usr/share/doc/bashinator-*/example/example.lib.sh /etc/example/example.lib.sh
install -D -o root -g root -m 0755 /usr/share/doc/bashinator-*/example/example.sh /usr/bin/example.sh
# run the example script
/usr/local/bin/example.sh -a

On any other Linux:

# download a bashinator release and unpack the package
wget http://www.bashinator.org/releases/bashinator-0.4.tar.bz2
tar -xjvf bashinator-*.tar.bz2
# install the bashinator library and the example application to the standard location
install -D -o root -g root -m 0644 bashinator-*/bashinator.lib.0.sh /usr/lib/bashinator.lib.0.sh
install -D -o root -g root -m 0644 bashinator-*/example/bashinator.cfg.sh /etc/example/bashinator.cfg.sh
install -D -o root -g root -m 0644 bashinator-*/example/example.cfg.sh /etc/example/example.cfg.sh
install -D -o root -g root -m 0644 bashinator-*/example/example.lib.sh /usr/lib/example.lib.sh
install -D -o root -g root -m 0755 bashinator-*/example/example.sh /usr/bin/example.sh
# run the example script
/usr/local/bin/example.sh -a

Documentation

A typical Bashinator-based application file layout looks like this:

A typical Bashinator-based application script structure looks like this (see example.sh):

Files

Screenshots

Messages of example.sh printed on terminal:

Messages of example.sh sent via mail:

Projects based on Bashinator

Bashinator on the web

Other bash frameworks

Contact/Imprint

Wolfram Schlich


Last modified: 16. February 2010, 14:19:11 by Wolfram Schlich <wschlich*AT*gentoo*DOT*org>