Class: InteractiveADXShell

InteractiveADXShell


new InteractiveADXShell(dir [, options])

Create an interactive spawn process with the ADXShell.

Manage the ADXShell process in interactive mode.

It allow a single instance creation of the ADXShell and a bi-directional communication using the stdio of the spawn process

Parameters:
Name Type Argument Description
dir String

Path of the ADX directory

options Object <optional>

Options

Properties
Name Type Argument Default Description
mode "interactive" | "interview" <optional>
'interactive'

Interactive mode

Members


mode :String

Mode of interaction.

  • interactive (arbitrary command)
  • interview (interact with interview)
Type:
  • String

path :String

Path of the ADX directory

Type:
  • String

Methods


destroy()

Destroy the internal reference of current object


exec(command, callback)

Send the specified command in the ADXShell process

Parameters:
Name Type Description
command String

ADXShell command to execute

callback function

Callback

Properties
Name Type Description
err Error

Error

result String

Result message of the ADXShell process