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
Build.xml
<target name="connect"
<echo message="Starting the SSHEXEC operation for using connect
script"/>
<sshexec host="172.25.41.22"
username="e5760"
Password="******"
trust="true"
command="./connectt.sh"/>
<echo message="Ending the SSHEXEC operation for using connect script"/>
</target>
Connectt.sh
cd bea/AMIT*/my*/
./startapp.sh
exit
In the above script ./starapp.sh is executed, but the exit is not
executed.
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]
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
_
Please advice me how to resolve the above issue.
Thanks
Venkatesh.V
**************** 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***