Mt Xia: Technical Consulting Group

Business Continuity / Disaster Recovery / High Availability
Data Center Automation / Audit Response / Audit Compliance

-
Current Location
-

css
  Downloads
    Scripts
      Korn

-

digg Digg this page
del.icio.us Post to del.icio.us
Slashdot Slashdot it!


Business Web Site Hosting
$3.99 / month includes Tools,
Shopping Cart, Site Builder

www.siteox.com

FREE Domain Registration
included with Web Site Hosting
Tools, Social Networking, Blog

www.siteox.com

Contained here are a wide variety of example Korn Shell scripts. These scripts include applications, programs, utilities, functions, and code snippets. You are free to download and evaluate these scripts. If you choose to continue to use these scripts in a commercial environment, you will be required to obtain a license for this purpose. Please contact Mt Xia for licensing details.

Special Interest Topics:


Content Management:
Documentation and web site content management functions.
kshAuth:
Authentication and authorization system for Apache 2.2+ web server. Provides the ability to enable password protection on a directory-by-directory basis. Also allows delegation of administration responsibilities to multiple users.
Fortune:
Unix "fortune" data for Korn Shell 93.
Functions:
Various Korn Shell functions.
K93 Unix:
Korn Shell 93 implementation of standard Unix commands.
Time and Date:
Time and Date manipulation functions.
Korn Shell 93 Binary: for AIX with SHOPT_AUDIT enabled
This is the Korn Shell 93 binary compiled for IBM AIX 5.3 with the auditing feature "SHOPT_AUDIT" enabled.
Korn Shell 93 Binary: for Linux with SHOPT_AUDIT enabled
This is the Korn Shell 93 binary compiled for Linux with the auditing feature "SHOPT_AUDIT" enabled.
ksh93 Quick Reference Guide: Testing and Substitutions:
This is a 2 page, tri-fold document containing Korn Shell 93 Quick Reference guide for variable substitutions, file attribute testing, string and numeric comparisions, and korn shell patterns.
ksh93 Quick Reference Guide: Built-in Commands:
This is a 2 page, tri-fold document containing Korn Shell 93 Quick Reference guide for built-in commands to the shell.
ksh93 Quick Reference Guide: set and unset Commands:
This is a 2 page, tri-fold document containing Korn Shell 93 Quick Reference guide for the "set" and "unset" commands.
ksh93 Quick Reference Guide: typeset Command:
This is a 2 page, tri-fold document containing Korn Shell 93 Quick Reference guide for the "typeset" command.
autocontent:
Automatically extracts specially commented lines from shell scripts and generates HTML documentation. (src)
shellscript_template_k93:
This is a korn shell scripting template for creating new korn shell scripts.
mkascii:
Generate an ASCII Table into an array (indexed by ASCII Character)
mkhacmp:
This script generates the HACMP commands necessary to build/rebuild a 2 node - 1 or 2 way cascading cluster, each node with one or more resource groups, each resource group with one or more application servers.
mkord:
Generate an ASCII Table into an array (indexed by ASCII Decimal Value)
mkrandstr:
Random String Generator. Korn shell script that generates a random string of characters of a configurable length.(Command line or Function)
mkrandpwd:
Random Password Generator. Korn shell script that generates a configurable random password string.
mkversion:
Source code versioning system
cal2html_k93:
Translate the calendar output from the Unix "cal" command into HTML
menugen9_k93:
HTML Look-and-Feel generator. Uses SSI and also produces navigational menus based on page relationships.
menugen10_k93:
HTML Look-and-Feel generator. Uses SSI and also produces navigational menus based on page relationships. (src)
mkuue:
This utility creates a self extracting archive for a specified file. The self extracting archive contains a shell script that knows how to test and reconfigure various attributes of the file, and the archive also contains a "uuencoded" copy of the file itself.
txt2html_k93:
txt2html is a plain text to HTML converter written as a Korn Shell 93 script function. It succesfully converts subtle text markup to lists, bold, italics, tables and headings to their corresponding HTML markup without having to write unreadable source text files.
(non-html version)

discipline:
This script provides several example "discipline" functions. A discipline function is a function that is associated with a specific variable. This allows you to define and call a function every time that variable is referenced, set, or unset. These functions take the form of varname.function, where varname is the name of the variable and function is the discipline function. The predefined discipline functions are get, set, and unset.
(non-html version)

mkewuid_k93:
Generate an enterprise wide unique identifier value for any given input string of characters. For example, this script can be used to generate an Enterprise Wide Unique UID number for any given user name. The output value may be calculated in a user selectable format and number of digits.
(non-html version)

threeDigitOctet_k93:
This script accepts one or more IP address arguments on the command line and converts each octet into 3 digits, zero filling where necessary. The result is an IP address where each octet is a 3 digit number.
(non-html version)

sortarray_k93:
Sorts a Korn Shell indexed array of values by a variety of mechanisms:
  • Lexical - Alphabetic sort order
  • Numeric - Sorts by decimal digits or floating point numbers
  • Reverse - Changes sort order to decending

(non-html version)

Contact Mt Xia for help with your shell scripting projects at 615.556.0456 or dfrench@mtxia.com

-
Korn Shell Scripts
-
 

ksh93 Fortune Script/Data
Korn Functions
Unix Utils as Scripts
cal to html converter
Web Site generator V9
Web Site generator V10
Autobuild HACMP cluster
ASCII Table
ASCII Table
Generate Random String
Self extracting Archive
Code Versioning
Shell Script Template
Documentation Content Generator
Text 2 HTML Converter
Example Discipline Functions
Enterprise Wide Unique ID
Zero Fill IP Addresses
Sort Indexed Array


FREE Domain Registration
included with Web Site Hosting
Tools, Social Networking, Blog

www.siteox.com

Business Web Site Hosting
$3.99 / month includes Tools,
Shopping Cart, Site Builder

www.siteox.com