Revision [1203]

This is an old revision of CommandExecution made by DavidLee on 2010-02-13 07:40:12.

 

Command Execution


Commands can be either builtin, internal, user defined or external commands.
Builtin commands are "special" in that they interact with the shell environment.
Internal commands implemented as a "convenience" in that they could be also implemented as
user defined commands. User defined commands are supported by creation of a jar containing
classes which implement the ICommand interface. External commands are any command (process)
outside of xmlsh. External commands are executed as seperate processes, all other commands are
executed with the JVM of xmlsh.

When given a command name to execute, xmlsh search in the following order.


Standard Commands


commands consist of Internal and experimental commands.

Builtin commands are special to xmlsh. They are "built in" because they need to interact with the shell and environment
in ways that other commands cannot. For example the "read" command reads values into a variable.

Internal commands are implemeted as java code that runs within the JVM of xmlsh. They are fundimentally no different from 'user defined commands' except they are supplied with xmlsh as a core toolset and are expected to be installed as part of every xmlsh installation.

Experimental commands are still under development and are not yet considered stable.

XMLSH Scripts

XMLSH Scripts are any xmlsh commands put into a file with the extension ".xsh".
They are invoked by using the base filename (with or without the .xsh). They can be explicitly invoked by full path names, or found with the XPATH Variable.


Extension Module Commands

Extension Modules can be written to add commands to xmlsh which work like internal commands.



External Commands

External commands are programs which run outside the JVM. These are the same "commands" that the OS shells execute.
External commands are found by looking in the PATH environment variable. They are executed as a sub process.
They can be explicitly invoked by full path names, or found with the PATH Variable.


See Also BasicSyntax
See Also XPATH
See Also PATH
See Also HowToScript
See Also Extension Modules
There are no comments on this page.
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki