ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From k...@apache.org
Subject svn commit: r537332 - /ant/core/trunk/docs/manual/OptionalTasks/sshexec.html
Date Sat, 12 May 2007 04:18:42 GMT
Author: kevj
Date: Fri May 11 21:18:36 2007
New Revision: 537332

URL: http://svn.apache.org/viewvc?view=rev&rev=537332
Log:
-updated docs with info about commandResource for SSHExec

Modified:
    ant/core/trunk/docs/manual/OptionalTasks/sshexec.html

Modified: ant/core/trunk/docs/manual/OptionalTasks/sshexec.html
URL: http://svn.apache.org/viewvc/ant/core/trunk/docs/manual/OptionalTasks/sshexec.html?view=diff&rev=537332&r1=537331&r2=537332
==============================================================================
--- ant/core/trunk/docs/manual/OptionalTasks/sshexec.html (original)
+++ ant/core/trunk/docs/manual/OptionalTasks/sshexec.html Fri May 11 21:18:36 2007
@@ -61,7 +61,12 @@
   <tr>
     <td valign="top">command</td>
     <td valign="top">The command to run on the remote host.</td>
-    <td valian="top" align="center">Yes</td>
+    <td valian="top" align="center">Either this or commandResource must be set</td>
+  </tr>
+  <tr>
+    <td valign="top">commandResource</td>
+    <td valign="top">The resource (file) that contains the commands to run on the remote
host.</td>
+    <td valian="top" align="center">Either this or command must be set</td>
   </tr>
   <tr>
     <td valign="top">port</td>
@@ -159,6 +164,15 @@
 	command=&quot;touch somefile&quot;/&gt;
 </pre>
 
+<p><b>Run a set of commands from a command resource (file) on a remote machine
using key authentication with no passphrase</b></p>
+<pre>
+  &lt;sshexec host=&quot;somehost&quot;
+	username=&quot;dude&quot;
+	keyfile=&quot;${user.home}/.ssh/id_dsa&quot;
+	commandResource=&quot;to_run&quot;/&gt;
+</pre>
+
+
 <p><strong>Security Note:</strong>  Hard coding passwords and/or usernames
 in sshexec task can be a serious security hole.  Consider using variable
 substitution and include the password on the command line.  For example:<br>
@@ -173,9 +187,5 @@
     ant -Dusername=me -Dpassword=mypassword target1 target2
 </pre>
 </p>
-
-
-
 </body>
-</html>
-
+</html>
\ No newline at end of file



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message