Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 49222 invoked from network); 15 May 2006 08:38:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 15 May 2006 08:38:25 -0000 Received: (qmail 14241 invoked by uid 500); 15 May 2006 08:38:20 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 14203 invoked by uid 500); 15 May 2006 08:38:19 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 14192 invoked by uid 99); 15 May 2006 08:38:19 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 May 2006 01:38:19 -0700 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=DNS_FROM_RFC_ABUSE,FROM_HAS_ULINE_NUMS,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [220.227.179.21] (HELO Kecgate03.infosys.com) (220.227.179.21) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 May 2006 01:38:18 -0700 Received: from indhubbhs01.ad.infosys.com ([192.168.200.81]) by Kecgate03.infosys.com with InterScan Messaging Security Suite; Mon, 15 May 2006 14:08:34 +0530 Received: from CHNSHLMSG02.ad.infosys.com ([172.21.73.102]) by indhubbhs01.ad.infosys.com with Microsoft SMTPSVC(6.0.3790.1830); Mon, 15 May 2006 14:05:57 +0530 x-mimeole: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C677FA.961A8BAF" Subject: exit from the script running in the remote machine using sshexec Date: Mon, 15 May 2006 14:05:55 +0530 Message-ID: <3BB7800F6BEC09458B069AA064994DD1D20D55@CHNSHLMSG02.ad.infosys.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: exit from the script running in the remote machine using sshexec Thread-Index: AcZ3+pVFuCTYwiPISiiO10KUd79Jpw== From: "Venkatesh Vijayakumar04" To: X-OriginalArrivalTime: 15 May 2006 08:35:57.0629 (UTC) FILETIME=[96730ED0:01C677FA] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C677FA.961A8BAF Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi all =0D I want to execute commands in the remote machine from ant.i used sshexec for execution, but what happens is, it establishes connection and executes commands successfully but the problem is the control is not returning to the ant build scripts once all the commands in the shell scripts are executed.=0D =0D The following is the script =0D Build.xml =0D =0D =0D Connectt.sh =0D cd bea/AMIT*/my*/ ./startapp.sh exit =0D In the above script ./starapp.sh is executed, but the exit is not executed. =0D I got the following result running the above scripts. C:\Automation\Build_Scripts>ant connect Buildfile: build.xml [echo] [echo] Compiling all class files.... [echo] [echo] [echo] Creating WebUtils.jar... [echo] =0D connect: [echo] Starting the FTP operation for using connect script [ftp] sending files [ftp] transferring C:\Automation\Build_Scripts\connectt.sh [ftp] 1 files sent [echo] Ending the FTP operation for using connect script [echo] Starting the SSHEXEC operation for using connect script [sshexec] Connecting to 172.25.41.22:22 _ =0D Please advice me how to resolve the above issue. =0D Thanks Venkatesh.V =0D =0D =0D **************** CAUTION - Disclaimer ***************** This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended= solely for the use of the addressee(s). If you are not the intended= recipient, please notify the sender by e-mail and delete the original= message. Further, you are not to copy, disclose, or distribute this e-mail= or its contents to any other person and any such actions are unlawful.= This e-mail may contain viruses. Infosys has taken every reasonable= precaution to minimize this risk, but is not liable for any damage you may= sustain as a result of any virus in this e-mail. You should carry out your= own virus checks before opening the e-mail or attachment. Infosys reserves= the right to monitor and review the content of all messages sent to or= from this e-mail address. Messages sent to or from this e-mail address may= be stored on the Infosys e-mail system. ***INFOSYS******** End of Disclaimer ********INFOSYS*** ------_=_NextPart_001_01C677FA.961A8BAF--