Image of Operating System Concepts
Image of XSLT 2.0 and XPath 2.0 Programmer's Reference (Programmer to Programmer)
Image of Android Wireless Application Development
Image of RHCE Red Hat Certified Engineer Linux Study Guide (Exam RH302) (Certification Press)

Korn Shell Launcher for Windows Subsystem for Linux

According to Microsoft, the Windows Subsystem for Linux (WSL) is a new Windows 10 feature that is essentially a compatibility layer which enables you to run native Linux command-line tools and utilities directly on Windows 10, alongside your traditional Windows desktop applications. Currently a beta feature, it is scheduled to be officially released in the Windows 10 Anniversary Update which is due CY2016Q3. There is no support for Linux GUI-based or TUI-based tools, utilities or applications not is any planned. When WSL is enabled, a Canonical-created Ubuntu user-mode image (currently named trusty-server-cloudimg-amd64-root.tar.gz and based on Ubuntu 14.04 Long-Term Support) is

Porting KSH93 to Windows 7 SUA

Many people are unaware that the Professional and Ultimate editions of Microsoft Windows 7 come with a user-mode subsystem called Services for UNIX Applications (SUA). SUA is kind of like the poor orphaned child of the Microsoft Windows family; it is there but rarely spoken about by Microsoft. What do I mean by a user-mode subsystem? Windows 7 is based on the the Windows NT architecture whose structure can be broadly divided into two parts: user-mode and kernel-mode. User-mode is made up of subsystems which pass I/O requests to the appropriate kernel-mode drivers via the I/O manager. Two types of

Korn Shell 93 Hash Builtins

Here is a simple Korn shell plugin which enables you to use the hash functions built into the AT&T Advanced Software Technologies (AST) (libsum) library in your ksh93 shell scripts. There are more hash functions in this library than those that I have included here but these are the most useful hash functions in my opinion. Here is the source code for the plugin: #include <shell.h> #include <shcmd.h> #include <ctype.h> #include <error.h> #include <sum.h> #define SH_DICT "libhash" static const char md5_usage[] = "[-?\n@(#)$Id: md5sum 2010-07-16 $\n]" "[-author?Finnbarr P. Murphy <fpmATun-ixDOTcom>]" "[-licence?]" "[+NAME?md5sum – generate an MD5 hash.]" "/n" "[+EXIT STATUS?]

Using Types To Create Object Orientated Korn Shell 93 Scripts

Most experienced software developers are familiar with the fact the Python, Perl, Ruby, JavaScript and other scripting languages support object orientated programming (OO) concepts such as classes and inheritance. However these same software developers would probably be extremely surprised to learn that the latest version of the Korn shell (Version 93 t+) also supports the object orientated paradigm. The OO paradigm is implemented in ksh93 by means of user-defined types. A type can be defined either by a shared library, by means of the new typeset -T declaration command, or by means of the enum declaration command. The method for

Sort Korn Shell 93 Associative Arrays

Both ksh93 and bash V4 support associative arrays. However neither provide any built-in mechanism to sort associative arrays. Recently I came across the following problem. Given a list of IP addresses such as the following: how can one produce a group by summary report similar to the following: : 3 : 2 : 1 : 1 : 1 The report counts the occurrences of each IP address in the input list, and outputs the count in descending order. Note it does not try to sort the IP