MKS Toolkit

 

The MKS Toolkit


 

Overview

The MKS Toolkit is a package that gives one UNIX-like commands and services.

It is a large, full-featured package that is far beyond the scope of this site to explain. But just as there are 10,000 UNIX commands, but only around 20 that you need to know in order to function at a minimal level, there are numerous commands within MKS that you could learn, but in order to administer Lawson, one only need know a small sub-set.

The most important commands are how to enter and exit an MKS shell. An MKS shell is similar to a UNIX shell or a DOS Prompt window. It gives you an interpretive programming interface to your Windows 95/98/NT/2000 system.

On NT/2000 systems, lainetd calls lalogin, which spawns c:\ksh.exe , which emulates the UNIX login fork/exec process.


 

Scripts

You can use MKS to execute Unix scripts as part of the Lawson job stream by creating user tokens (tokendef) that call your MKS scripts. You can then make these user tokens part of your multi-step jobs. Make your scripts executable using chmod, or run the script using something like the following syntax:

sh C:\directory\path\scriptname.sh

If you want to automate submission of your scripts, NT has the at command, which acts like cron. There is a GUI version available. Be aware that at needs to be enabled by turning on the "Scheduler" Service.


 

Running MKS

To start an MKS shell

Click Start | Run
Type sh -k and <ENTER>

To exit from an MKS shell

Type exit

To enable vi functionality, like last command callback, (i.e. <ESC> k), run

set -o vi