ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Venkatesh Vijayakumar04" <>
Subject exit from the script running in the remote machine using sshexec
Date Mon, 15 May 2006 07:39:09 GMT

Hi all

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.

The following is the script


<target name="connect"

<echo message="Starting the SSHEXEC operation for using connect

<sshexec host=""





<echo message="Ending the SSHEXEC operation for using connect script"/>


cd bea/AMIT*/my*/



In the above script ./ is executed, but the exit is not

I got the following result running the above scripts.

C:\Automation\Build_Scripts>ant connect

Buildfile: build.xml


     [echo]             Compiling all class files....



     [echo]                     Creating WebUtils.jar...



     [echo] Starting the FTP operation for using connect script

      [ftp] sending files

      [ftp] transferring C:\Automation\Build_Scripts\

      [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


Please advice me how to resolve the above issue.



**************** 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***
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message