ant-user mailing list archives

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


startapp.sh

nohup ./startWebLogic.sh > smile-appserver.log &

exit


-----Original Message-----
From: Venkatesh Vijayakumar04 
Sent: Monday, May 15, 2006 2:36 PM
To: 'Jan.Materne@rzf.fin-nrw.de'
Subject: FW: exit from the script running in the remote machine using sshexec



I tried the below command
It gave me msg"Successful Connection" but not executing the command exit.

Connectt.sh

cd bea/AMIT*/my*/
./startapp.sh
if [ $? -eq 0 ]
then
 echo "Successful Connection"
 exit 0
 fi

-----Original Message-----
From: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de] 
Sent: Monday, May 15, 2006 2:12 PM
To: user@ant.apache.org
Subject: AW: exit from the script running in the remote machine using sshexec

Does the './startapp.sh' exit?
Could you do an echo statement in your 'Connectt.sh' script for verifying that?


Jan

>-----Urspr√ľngliche Nachricht-----
>Von: Venkatesh Vijayakumar04 [mailto:Venkatesh_V04@infosys.com] 
>Gesendet: Montag, 15. Mai 2006 10:36
>An: user@ant.apache.org
>Betreff: exit from the script running in the remote machine 
>using sshexec
>
>
>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***
>

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


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


Mime
View raw message