Studio:Connect.pl

From STRIDE Wiki
Revision as of 04:59, 7 May 2010 by Ivailop (talk | contribs) (→‎Prerequisites)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Connect is a light-weight utility for managing the connection to the target device.

Prerequisites

Usage

 Connect.pl [-c -d -t 10]
Parameters
-c | --connect
Connects to the device using the currently active transport, as specified in the transport.cfg file. By default, if no options are specified, this script will attempt to connect. If a connection is already established, the script will exit. After connecting, the script will wait on input from the keyboard (type either "q", "Q", <Ctrl>+C or <Ctrl>+Z) to disconnect and exit.
-d | --disconnect
Disconnects from the device. The script exits immediately after disconnecting.
-t | --timeout = TimeoutVal
Specifies a timeout (in seconds) to use when attempting to connect to the device. If it is unable to connect in TimeoutVal seconds, the script will issue an error and exit. The default value is 5 seconds.

Prerequisites

This component is written in the Perl scripting language and therefore requires that Perl be installed. See Perl requirements for more information.

The target connection is handled by the Initialize module.