FTP files from different directory from remote server to one directory in local

Hi All,
I want to search for .log files from folders and sub folders in remote server and FTP them to one particular folder in the local machine. I dont want to copy the entire directory tree structure, just have to take all the .log files from all the folders by doing a recursive search from the remote directories using FTP and place it to one particular folder in the local

Please suggest.

Thanks,
dass

There is no "recursive search" feature of ftp.

This is a pre-emptive solution without properly stating the problem or anything about the computers.

the FTP script i have is

ftp -ni 2>$RUNNUM.log <<! 
       open $REMOTESERVER
       user $USERID $TPPWD
       cd $REMOTEDIR
       mget *.xml
       quit
!

with the above I can get the files from one directory, but my directory structure is as below

REMOTEDIR= /home/sales
with in sales I can have many subfolders like
/home/sales/Jan
/home/sales/feb
/home/sales/march
and even those folders can have subfolders like /home/sales/Jan/abc

I want to do a recursive search in the remote directory and look for .xml files from all the subfolders inside sales folder and ftp those xml files to my local machine.

Using just ftp for this task would be the very last resort. Navigating an unknown directory tree with ftp is really difficult.

Do you have better software like Remote Shell , Remote Copy etc. .?
Do you have administrative access to both computers?

The whole process would better driven from the remote computer end.