Hi,
I'm using multipal sshexec tasks (latest jar from the
http://www.jcraft.com/jsch/index.html ) in my build file but only one (
first one) get executed properly , other doesn't execute the command on
remote machine. I'm using openSSH on windows. Build file is not throwing any
exception also.
Is there any setting which i have to do on openSSH?
e.g
<target name="populateRemoteDB" depends="getRemotepath">
<echo message="${user}"/>
<echo
message="${remote.file.location.framework}/${executionPath}"
/>
<sshexec host="${remote.machine.name}" username="${user}"
password="${password}"
command="cd
${remote.file.location.framework}/${executionPath};ls"
trust="true">
</sshexec>
</target>
<target name="startServers" depends="initLocal ,initRemote
,getRemotepath, startRemoteServer" />
<target name="startRemoteServer">
<echo message="${executionPath}" />
<sshexec host="${remote.machine.name }" username="${user}"
password="${password}"
command="cd
${remote.file.location.framework}/${executionPath};ls
-la" trust="true" output="temp.txt ">
</sshexec>
</target>
Thanks
Anu
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
JSch-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jsch-users