资 源 简 介
Overview
Bash Plugin Architecture (BPA) is a plugin architecture for bash scripts that allows you to easily create a consistant way of using bash scripts by grouping code by function or application.
It is entirely written in bash for maximum portability (and fun).
Examples
You create a script called sysadmin.sh to manage parts your systems. Each machine might have a different purpose, so the functionality of sysadmin.sh will vary from system to system. Running:
$ sysadmin.sh --help
would give you the list of available plugins registered to sysadmin.sh.
E.g.
$ sudo sysadmin.sh --mail --flush
could flush your mail queue regardless of what MTA is running.
Perhaps you also have a security.sh to easily run a variety of standard security tasks:
$ sudo security.sh --nmap --syn -- 192.168.0.1
could run your favorit