Accessor: utilities/Exec

utilities/Exec

Exec starts a shell command and connects to the process' stdin and stdout. This accessor implements an interface to the shell of the host. It takes a command and starts it as a process. It connects the process' stdin and stdout to the accessor ports with the same name. FIXME: Provide a selection of shells (e.g., bash, awk, etc)

Version:
  • $$Id$$
Author:
  • Armin Wasicek (arminw@berkeley.edu)
Source:
Inputs:
Name Type Description
stdin string The stdin of the executing process. A token received on this port is interpreted as a line entered in stdin of the process.
Outputs:
Name Type Description
stdout string The stdout of the executing process. Each line read from the executing process is sent out as a token from this port.
Parameters:
Name Type Description
command string The command to be executed.

Members

(inner) sh

Global object to the shell module provided by the host.

Source:

Methods

(static) initialize()

Initialize the accessor and start the process subsequently.

Source:

(static) setup()

Set up the accessor by defining the inputs and outputs.

Source:

(static) wrapup()

Wrap up the execution of the accessor by stopping the process.

Source: