Actions

Scripting::Command-line interface

::concepts

Command::shell    Commands::windows    Program::systems    System::which    Prompt::language    Programs::other

Scripting Most command-line interpreters support scripting, to various extents. (They are, after all, interpreters of an interpreted programming language, albeit in many cases the language is unique to the particular command-line interpreter.) They will interpret scripts (variously termed shell scripts or batch files) written in the language that they interpret. Some command-line interpreters also incorporate the interpreter engines of other languages, such as REXX, in addition to their own, allowing the executing of scripts, in those languages, directly within the command-line interpreter itself.

Conversely, scripting programming languages, in particular those with an eval function (such as REXX, Perl, Python, Ruby or Jython), can be used to implement command-line interpreters and filters. For a few operating systems, most notably DOS, such a command interpreter provides a more flexible command line interface than the one supplied. In other cases, such a command interpreter can present a highly customised user interface employing the user interface and input/output facilities of the language.


Command-line interface sections
Intro  Advantages  Criticisms  Operating system command-line interfaces  Application command-line interfaces  History  Usage  Anatomy of a shell CLI  Command-line interpreter  Scripting  Other command-line interfaces  See also  References  External links  

Scripting
PREVIOUS: Command-line interpreterNEXT: Other command-line interfaces
<<>>