Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ant 1.6 ftp to HPUX

Status
Not open for further replies.

sundiveken

Programmer
Jun 3, 2004
2
US
I'm using ant 1.6 ftp task and I am able to get files and get a listing from a linux box (either from a linux box or from an HPUX box) but when I try to use the ftp task to attach to a HPUX box, I get no files listed or retrevied. I also get a sucess back from ant. I see that it's hitting the HP box, but just not bringing back the list.

I am sure that the remote directories have files to get and they are not symlinks.

Here is they build.xml file I'm using.

Any help is appreciated.
Ken

<project name="testftp" default="ftp" basedir=".">
<target name="ftp">
<ftp server="192.168.1.1"
remotedir="/home/myhome"
listing="mylisting"
userid="myid"
password="mypassword"
action="list"
verbose="yes">
<fileset>
<include name="**"/>
</fileset>
</ftp>

</target>
</project>
 
sounds to me the FTP server is set to run in passive mode.
try set attribute passive to "yes". i.e.

<ftp server="192.168.1.1"
passive="true"

remotedir="/home/myhome"
listing="mylisting"
userid="myid"
password="mypassword"
action="list"
verbose="yes">
 
Thanks byam. I tried both active and passive and neither worked. I had our administrator on the HP server turn up the debugging level to the max and when I it again (both active and passive, I saw where it connected, did a cwd, a pwd, a syst, port, cdup and then a quit. Looks like it never did a LIST for some reason. I've submitted a bug report to apache. I'll post here with the answer they provide.


Thanks again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top