Ah great thanks. Why didn't I think of that? :)

----Original Message Follows----
From: "Anderson, Rob (Global Trade)" <[EMAIL PROTECTED]>
Reply-To: "Ant Users List" <user@ant.apache.org>
To: "Ant Users List" <user@ant.apache.org>
Subject: RE: Ant Task: sshexec
Date: Thu, 19 May 2005 15:30:25 -0700
MIME-Version: 1.0
Received: from mail.apache.org ([209.237.227.199]) by MC8-F33.hotmail.com with Microsoft SMTPSVC(6.0.3790.211); Thu, 19 May 2005 15:30:53 -0700
Received: (qmail 43676 invoked by uid 500); 19 May 2005 22:30:42 -0000
Received: (qmail 43649 invoked by uid 99); 19 May 2005 22:30:42 -0000
Received: pass (hermes.apache.org: local policy)
Received: from nbarrierb241.nike.com (HELO barrierb241.nike.com) (146.197.27.40) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 19 May 2005 15:30:41 -0700
X-Message-Info: JGTYoYF78jEehhnlXDVH4HDrHvm5tdh7pTx6mUPXN6c=
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:[EMAIL PROTECTED]>
List-Help: <mailto:[EMAIL PROTECTED]>
List-Post: <mailto:user@ant.apache.org>
List-Id: "Ant Users List" <user.ant.apache.org>
Delivered-To: mailing list user@ant.apache.org
X-ASF-Spam-Status: No, hits=0.0 required=10.0tests=
X-Spam-Check-By: apache.org
X-Server-Uuid: BDE2CC8B-9671-48D4-9A25-CA756DA0A621
X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0
Content-class: urn:content-classes:message
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
Thread-Topic: Ant Task: sshexec
Thread-Index: AcVcvlXvjShwcP98Rk+on/fJJyTPmgAA+Oxg
X-OriginalArrivalTime: 19 May 2005 22:30:25.0284 (UTC) FILETIME=[59F92C40:01C55CC2]
X-WSS-ID: 6E93CC0B2H0232912-01-01
X-Virus-Checked: Checked
Return-Path: [EMAIL PROTECTED]


Separate the commands with a ;

   <sshexec host="somehost"
        username="${username}"
        password="${password}"
        command="touch somefile;touch anotherfile;touch yetanotherfile"/>

-Rob A

> -----Original Message-----
> From: S I [mailto:[EMAIL PROTECTED]
> Sent: Thursday, May 19, 2005 3:01 PM
> To: user@ant.apache.org
> Subject: Ant Task: sshexec
>
>
> How can I get sshexec to pass it more than one command at a time?
>
>   <sshexec host="somehost"
>    username="${username}"
>    password="${password}"
>    command="touch somefile"/>
>
> I used it to run command on our unix server from my winxp
> desktop.  However,
> it seems I have to instantiate many of these ...
>
> <sshexec host="somehost"
>    username="${username}"
>    password="${password}"
>    command="touch somefile"/>
>
> .. just to run 1 cmd @ a time.  I tried <commnadline> + it <argument>
> attribs to no avail as you guessed it.  Help!
>
> Thanks
> Steven
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to