Hi Rob Basically I have to perform some function of this script on one server and some on the other so i have one script on Server X and another on Server Y. and the script on Server X calls the script on Server Y using ssh. and the script on Server X again needs to be called from the Ant Script which is done in an SSHExec target. the whole script of server X works fine but the call to script on Server Y doesnt work. Please help me with it. Thanks, Rishi
> Subject: RE: SSHExec Target> Date: Thu, 24 Jan 2008 11:03:01 -0800> From: > [EMAIL PROTECTED]> To: user@ant.apache.org> > So you are using the sshexec > task to connect to a remote server and> execute a script that connects via > ssh to another remote server. That> doesn't really make sense to do, in my > opinion. Why not just use sshexec> to connect to the directly to the remote > server you intend to execute> something on? Why use a shell script at all?> > > -Rob Anderson> > -----Original Message-----> From: Rishi Gogia [mailto:[EMAIL > PROTECTED] > Sent: Thursday, January 24, 2008 10:14 AM> To: > user@ant.apache.org> Subject: SSHExec Target> > Hi> > I am using SSHExec > target in my Build.xml which is calling a shell> script. This shell script > internally connects to another server in the> network through SSH. The shell > script is running fine when executed from> solaris command prompt. but when > executed from the build.xml, it doesn't> call the command to connect through > SSH.> > Please tell me what's going on and how can I correct it.> > Thanks> > > Rishi> > > > ---------------------------------------------------------------------> To > unsubscribe, e-mail: [EMAIL PROTECTED]> For additional commands, e-mail: > [EMAIL PROTECTED]>