Studio:Connect.pl: Difference between revisions

From STRIDE Wiki
Jump to navigation Jump to search
No edit summary
 
Line 18: Line 18:
== Prerequisites  ==
== Prerequisites  ==


This component is written in the Perl scripting language and therefore requires that Perl be installed. See [[Desktop Installation#Third Party Requirements|Perl requirements]] for more information.  
This component is written in the Perl scripting language and therefore requires that Perl be installed. See [[Studio:Desktop Installation#Third Party Requirements|Perl requirements]] for more information.  


The target connection is handled by the [[Initialize.pm|Initialize module]].
The target connection is handled by the [[Initialize.pm|Initialize module]].


[[Category:Studio:Scripts]]
[[Category:Studio:Scripts]]

Latest revision as of 04:59, 7 May 2010

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.