ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 35532] - sshexec task can't issue multiple commands easily.
Date Tue, 28 Jun 2005 21:51:52 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=35532>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=35532





------- Additional Comments From andrzej@chaeron.com  2005-06-28 23:51 -------
Sample usage for testing of sshexecmultiple:

<target name="test-sshmultiple">
   <echo>Starting sshexecmultiple test...</echo>
		
   <!-- sshexecmultiple lets you nest multiple commands and will 
        execute them in sequence.
		
	Attributes are the same as for the base sshexec, with the addition of 
        the haltonerror attribute.
	If haltonerror = "true" then if any command fails, subsequent commands 
        will not be executed.
	If haltonerror = "false" then if any command fails, subsequent commands 
        will STILL be executed.
		
	NOTE: The state is not preserved between the commands in this version. 
	For example, if you change dirs in one command, this will no longer be 
        in effect for the subsequent commands,
	as is demonstrated below.  If you need to change state (ie directory) 
        use semi-colons to separate multiple
	commands in a single <command> entry as is demonstrated below.
   -->
		
   <sshexecmultiple host="myhost" 
      username="user" 
      keyfile="mykeyfile" 
      passphrase="lemmein"
      trust="true"
      haltonerror="false">
      <command>echo One</command>
      <command>xyz</command>
      <command>echo Two</command>
      <command>pwd</command>
      <command>cd ..;pwd</command>
      <command>pwd</command>
   </sshexecmultiple>

   <echo>Done sshexecmultiple test</echo>
</target>

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


Mime
View raw message