lady:factory:shellscript

Shell Scripts

As any good sysadmin I developed my own script for some common, repetitive tasks or other needs. Although some are very specific to my needs, setup and environment, they can give you and idea or hint for some issue you have and other scripts have been development with reusability in mind.

For my internal deployment processes of these scripts to my systems they are all stored below the subversion path Shell, emulating the standard Linux Filesystem hierarchy and intended to be installed under /usr/local/, although this should not affect much and doesn't suppose any special requirement.

Also for this reason, as I use this repository for deployment of scripts I use note that some scripts may not be developed by me (so I'm not the author), in that case the proper script code will contain the reference author and license and so…

Note that for my internals use, the repostiory deploys my internal CA certificate under /usr/local/share/ca-certificates/, so if you choose to deploy them in bulk as me under /usr/local/ you may be trusting entirely my CA .. you trust me?

Almost all scripts are self contained, so installing them is as simply as copying the file and give it execution permissions

  • Although may be portable, they are developed for Bash, so bash is required
  • For all common scripting tasks I developed a Shell library which almost all the scripts import (well it sources) the liblady.sh
  • Scripts may make use of some external non-standard programs, in those cases a I use require shell function which both documents this requirements and launches an error dynamically when is unable to find it

For the liblady.sh requirement you can either:

  • Install it below /usr/local/lib/
  • Copy & paste it at the start of the script
  • Include it in your .profile or .bashrc files

I usually doesn't provide packaged download, instead I try to keep the development trunk free of bugs, so usable. For big changes I usually use a separated branch to not affect main trunk of development.

In case the software have few changes (either because is stable enough or even because I don't maintain it actively) I provide packaged tarballs.

  • lady/factory/shellscript.txt
  • Last modified: 2023/06/26 15:13
  • by Count Zero