Autohit * Tools

 

This doclet describes the command line tools. 

Before using any of these tools, you must set the enviroment by running set-env.bat.   You need only run it once for each command shell you open.

SECTIONS Compile Run Dump

 

  Compile

The command line compiler.  It will compile various source files into related object files. 

usage

Usage: compile sourcefile.ext objectfile

  • The .ext will detirmine WHICH compiler is used.
  • The following are currently supported:
    .sim == Sim compiler. Object file extension is .osm

example

C:\dev\autohit>java compile test1.sim test1

This will compile the file test1.sim using the Sim compiler.  If the compile is successful, it will create the file test1.osm, which is a compiled sim object.

 

  Run

The command line execution context.  It will run various object files using the appropriate VM. 

usage

Usage: run file.ext target {transport}

  • The .ext will detirmine WHICH VM is used.  The following are currently supported:
    .osm == Sim VM.
  • The target is passed to the registered transport as the target address.  This may or may not have meaning to the transport.
  • The transport field is optional.  If a transport is specified, it will be registered with the VM.  If a transport is not specified, the Test Transport is used.   The following are currently supported:
    http == A light-wieght http transport.  It supports cookies and redirects.  It does not parse or otherwise interact with the fetched content.
    test == A test transport.  All requests are echoed to standard-out and forgotten.

example

C:\dev\autohit>java run test1.osm localhost http

This will run the test1 Sim against the web server on the same machine.

example

C:\dev\autohit>java run test1.osm x

This will run the test1 Sim using the test transport.  The target is a nonsense character since it isn't really needed by the test trasnport.

  Dump

This will dump a compiled object to standard out.  It should be man-readable.   This is typically only used for platform debugging.

usage

C:\dev\autohit>java dump test1.osm


 

Copyright © 1999 Erich P G.