ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From neitcouq <>
Subject sshexec ant task command not found
Date Fri, 11 Apr 2008 10:36:47 GMT

I have a target in build.xml like that:

<target name ="deployment">	
<sshexec host="myhost" 
			trust = "true"
			command="dir E:\Share"/>

When I run this target, the result out put :

  [sshexec] Connecting to tamnguyen0908:22
  [sshexec] dir: not found

My scenario:

Run in : Linux Ubuntu
SSh : open ssh
Ant1,7; jsch-0.1.37.jar (for using sshexec and scp tasks)
myhost : Windows XP OS

It seem caused by ant or jsch-0.1.37.jar, because when I ssh to myhost by
shell command and do something in myhost, everything oke.

sshexec can not find dir, mkdir.... command, but it realizes some command
such as ping, ipconfig, netstat.
When I change myhost to an Linux server (sshexec from Linux to Linux), the
script run ok.
Any one can help me to solve this problem. I have spent all day but nothing
Thanks !
View this message in context:
Sent from the Ant - Users mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message