Skip to content

Latest commit

 

History

History
18 lines (11 loc) · 1.11 KB

technote011.md

File metadata and controls

18 lines (11 loc) · 1.11 KB

Tech Note 011 - Scripting

Automating command application with scripts

It is convenient to automate the application of commands. LIL shows one way of implementing a scripting language that may interface well with Oberon's text user interface, and as it has a Free Pascal impementation may be less work to adopt than other scripting language implementations.

  • lines of "Module.Command argument" should be supported for scripting familiar operations
  • Conditionals, variable substituion, etc. are desireable
  • Pipes would be nice
  • prompt interaction is useful
  • environment variables add customizability
  • Return values and error codes are needed

In A2 Oberon the Oberon.Configuration module provides an example of batch execution of Oberon commands

Michael Schierl's Batch.Mod also provides a facility to verify the Log buffer against a checksum and testing against the result for script success or failure.