Welcome Guest ( Log In | Register )


 
Reply to this topicNew Topic
List the contents of two different directories on a remote FTP site
psamman
post Dec 11 2009, 02:08 PM
Post #1


Contributor
**

Group: Members
Posts: 28
Joined: 15-January 09
Member No.: 283


Hi,

How to list the contents of two different remote directories on a remote FTP site in one single transfer request?

I thought this would do :
CODE
peltrans -po Y -oa RS_FTP -mode I -dir I -type dir -ftp_command "QUOTE CWD /DATA/OUT/; QUOTE LIST; QUOTE CWD /DATA/IN/; QUOTE LIST"

but I get an error :
CODE
SUP   I XBEG_CF-  RS_FTP(62915035) [13215] transfer in requester mode refused: reason="165, Transfer failure" / prot.diag="425, Can't open data connection" / error=0


Any other way of doing it?

Any hints appreciated.
Go to the top of the page
 
+Quote Post
hossman
post Dec 15 2009, 05:23 PM
Post #2


Contributor
**

Group: Members
Posts: 11
Joined: 15-November 08
Member No.: 186


The best way would be to create a transfer model and link child models that actually fetch the list from the directories.
Go to the top of the page
 
+Quote Post
Mario128
post Dec 17 2009, 10:33 AM
Post #3


Regular Contributor
Group Icon

Group: Axway Moderator
Posts: 31
Joined: 6-November 08
From: Paris
Member No.: 100


Hi,
You can not list a remote directory using ftpc commands. ( you will have some issues with the data session )
You may use two peltrans with type dir instead of trans and dir_name as remote directory to list
Raphael
Go to the top of the page
 
+Quote Post
psamman
post Jan 7 2010, 12:35 PM
Post #4


Contributor
**

Group: Members
Posts: 28
Joined: 15-January 09
Member No.: 283


QUOTE (Raphael Serres @ Dec 17 2009, 11:33 AM) *
You can not list a remote directory using ftpc commands. ( you will have some issues with the data session )


Yes, indeed. 2 connections needed.
Specifications changed on the day of putting my solution in production and two completely different logics were needed for the two directory, so I ended up using two schedules, two scripts.. and two peltranses! Problem solved!

Thx guys.
Go to the top of the page
 
+Quote Post

Reply to this topicNew Topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Skin designed by IPB Forum Skins