From 753a6c60f47f3ac4f270005b65e9d6481de8eb68 Mon Sep 17 00:00:00 2001 From: Ashlee Young Date: Fri, 23 Oct 2015 10:00:02 -0700 Subject: Adding maven and ant source trees Change-Id: I0a39b9add833a31b9c3f98d193983ae2f3a5a445 Signed-off-by: Ashlee Young --- .../ant/apache-ant-1.9.6/manual/Tasks/rexec.html | 116 +++++++++++++++++++++ 1 file changed, 116 insertions(+) create mode 100644 framework/src/ant/apache-ant-1.9.6/manual/Tasks/rexec.html (limited to 'framework/src/ant/apache-ant-1.9.6/manual/Tasks/rexec.html') diff --git a/framework/src/ant/apache-ant-1.9.6/manual/Tasks/rexec.html b/framework/src/ant/apache-ant-1.9.6/manual/Tasks/rexec.html new file mode 100644 index 00000000..02f6fe23 --- /dev/null +++ b/framework/src/ant/apache-ant-1.9.6/manual/Tasks/rexec.html @@ -0,0 +1,116 @@ + + + + + + +RExec Task + + + + +

RExec

+

Description

+Task to automate a remote rexec session. Just like the Telnet task, +it uses nested <read> to indicate strings to wait for, and +<write> tags to specify text to send to the remote process. + +

Note: This task depends on external libraries not included in the Apache Ant distribution. +See Library Dependencies for more information.

+ +

You can specify the commands you want to execute as nested elements +or via the command attribute, we recommend you use the command +attribute. If you use the command attribute, you must use the +username and password attributes as well.

+ +

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
AttributeValuesRequired
useridthe login id to use on the remote server.No
passwordthe login password to use on the remote server.No
serverthe address of the remote rexec server.Yes
commandthe command to execute on the remote server.No
portthe port number of the remote rexec server. Defaults to port 512 in BSD Unix systems.No
timeoutset a default timeout to wait for a response. Specified in seconds. Default is no timeout.No
+

Nested Elements

+The input to send to the server, and responses to wait for, are +described as nested elements. + +

read

+ +

declare (as a text child of this element) a string to wait for. +The element supports the timeout attribute, which overrides any +timeout specified for the task as a whole. It also has a string +attribute, which is an alternative to specifying the string as +a text element. +

+It is not necessary to declare a closing <read> element like for the Telnet task. The connection is not broken until the command has completed and +the input stream (output of the command) is terminated. + +

write

+ +

describes the text to send to the server. The echo boolean +attribute controls whether the string is echoed to the local log; +this is "true" by default +

+

Example

+A simple example of connecting to a server and running a command. + +
+<rexec userid="bob" password="badpass" server="localhost" command="ls"/>
+
+ +The task can be used with other ports as well: +
+<rexec port="80" userid="bob" password="badpass" server="localhost" command="ls"/>
+
+ + + + + + -- cgit 1.2.3-korg