Contact Us | Products/Services | Korn Shell | MicroEMACS


Mt Xia:
Technical Consulting Group
 

Functions


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

Current:Functions
Previous:
Home Page

shcurses
frenchMenus


Shell Curses Function Library
Korn Shell library of functions to provide cursor movement capabilities for the shell programmer. Similar in function and form to the Curses C library.

French Menus Korn Shell Function Library
Korn Shell library of functions to provide menuing, data entry, and program management capabilities for the shell programmer.

cgiparse: CGI variable parsing function
Parses CGI variables for interpreting HTML values passed to a shell program from a web-based interface.
(non-html version)

displaydom_k93: Display dates in a month for a specified day of the week
This script examines a calendar for a specified month and year and outputs a day of the month or a list of days of the month on which a specified day of the week occurs. For example, this script will output the dates for all of the Sundays in February 2006, or it can output the date of the second Sunday in February 2006.
(non-html version)

fromdate_k93: Calculate a date from a specified beginning date
Shell function to calculate a date forward or backward for a specified number of days from a given date.
(non-html version)

getch: Retrieves a single keystroke from the keyboard
Shell function to read a single keystroke from the keyboard without requiring the user to press enter. Uses the "dd" command to provide this function.
(non-html version)

isLeap: Determine if a year is a leap year
Korn shell function to determine if the current or user specified year is a leap year. Returns boolean true or false, also will optionally return the number of days in February.
(non-html version)

mapluns: Script to map VIO disks, LUNs, vhost adapters on a VIO server
Map the disks from a VIO server to their respective virtual SCSI slot numbers, virtual adapters, and LDEV numbers.
(non-html version)

mkascii: Generate an array of ASCII character values
Generates an associative array of ASCII character values indexed by the ASCII character, array element value is the numeric decimal value.
(non-html version)

mklpar: Script to Add/Create an LPAR on a Power 5 HMC managed system
This script function will create a template LPAR on a Power 5 HMC managed system. The resulting LPAR will require manual configuration of physical and/or virtual I/O adapters. Environment variables may be specified to change the default values of the LPAR template.
(non-html version)

mkrandpwd_k93: Script to generate a random password string.
As a result of recent IT security requirements imposed upon many businesses, user passwords are typically required to be unintelligible strings of random characters. The purpose of this script is to generate random strings of characters that can be used as secure passwords to comply with IT security requirements.
(non-html version)

mkviolpar: Script to add/create a VIO Server LPAR on a Power 5 HMC managed system.
This script function will create a VIO Server LPAR on a Power 5 HMC managed system. The resulting LPAR will require manual configuration of physical I/O adapters. Environment variables may be specified to change the default values of the LPAR template.
(non-html version)

rmlpar: Script to remove/delete an LPAR from a Power 5 HMC managed system.
This script function will remove or delete an LPAR and associated profiles from a Power 5 HMC managed system.
(non-html version)

mkord: Generate and array of ASCII character values
Generates an array of ASCII character values indexed by the numeric decimal value, the array element value is the ASCII character.
(non-html version)

mkuid: Generate unique UID/GID numbers
Uses the Unix user or group name to generate a unique UID/GID number for the user which and be regenerated on any other machine in a consistent and reliable basis.
(non-html version)

xyz2onedim_k93: Simulate Multi-Dimension Korn Shell Arrays
This function allows the simulation of multi-dimensional Korn shell arrays. Accepts multi-dimensional arguments and calculates the equivalent single dimension array element position.
(non-html version)

onedim2xyz_k93: Simulate Multi-Dimension Korn Shell Arrays
This function allows the simulation of multi-dimensional Korn shell arrays. Accepts single dimension array argument and calculates the equivalent multi-dimensional array element positions.
(non-html version)

psmonitor_k93: Automated process monitoring script
This function reads a list of process arguments from a process list file and checks the system process list to see if that process is running, if not it logs an error in the AIX error log. This function is intended to be run from cron once every minute of every day.
(non-html version)

isBetween: Determine if a file's date/time stamp is between two specified dates
This function will determine if the last modification date/time on a file is between two specified date/time values. The date/time values required consist of a beginning and an ending date/time, and are expected to be in the following format: YYYY-MM-DD HH:MM:SS.
(non-html version)

vscsiPriority: Assign Path Priorities to Virtualized Disks
Script to assign priorty to vscsi paths based on even/odd numbers associated with each disk and each path to disk. This script is useful in a Virtualized environment utilizing VIO servers with MPIO on the client LPAR's. This script provides the system admin with the ability to manually load balance SAN traffic from client LPAR's between dual VIO servers.
(non-html version)

 

For information regarding this page, contact Dana French ( dfrench@mtxia.com )