You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by neitcouq <ne...@yahoo.com> on 2008/04/11 12:36:47 UTC

sshexec ant task command not found

I have a target in build.xml like that:

<target name ="deployment">	
<sshexec host="myhost" 
			username="myusername"
			password="mypassword"
			trust = "true"
			verbose="true"
			command="dir E:\Share"/>
</target>

When I run this target, the result out put :

deployment:
  [sshexec] Connecting to tamnguyen0908:22
  [sshexec] dir: not found
BUILD SUCCESSFUL

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
change.
Thanks !
-- 
View this message in context: http://www.nabble.com/sshexec-ant-task-command-not-found-tp16627324p16627324.html
Sent from the Ant - Users mailing list archive at Nabble.com.


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


Re: sshexec ant task command not found

Posted by Alex Mayorga Adame <al...@yahoo.com>.
Can you confirm the dir command is in the PATH of the Windows host when you
sshexec to it?

Try to change your command to command=PATH just to confirm what's in there
when you sshexec.

Hope it helps
-- 
View this message in context: http://www.nabble.com/sshexec-ant-task-command-not-found-tp16627324p16701333.html
Sent from the Ant - Users mailing list archive at Nabble.com.


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