Studio:Connect.pl: Difference between revisions
Jump to navigation
Jump to search
(New page: Category: Scripts) |
No edit summary |
||
Line 1: | Line 1: | ||
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_Configuration_File|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 [[Installing STRIDE#Third Party Requirements|Perl requirements]] for more information. | |||
The Target connection parameters are specified in the [STRIDE_DIR]\bin\transport.cfg configuration file. The default values need to be adjusted to the test environment. Refer to the [[Transport_Configuration_File|Transport Configuration File page]] for more details. | |||
[[Category: Scripts]] | [[Category: Scripts]] |
Revision as of 17:06, 12 August 2008
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 parameters are specified in the [STRIDE_DIR]\bin\transport.cfg configuration file. The default values need to be adjusted to the test environment. Refer to the Transport Configuration File page for more details.