ambrill has asked for the wisdom of the Perl Monks concerning the following question:

Is it possible to use the get function and specify only the extension type as is "*.xml" - I presume not given my program won't work but would like confirmation and suggestions - for sure there is only one file with that extension in a given remote directory. thanks

Replies are listed 'Best First'.
Re: ftp get (*.xml)
by blue_cowdawg (Monsignor) on Apr 26, 2013 at 17:51 UTC

    Suggest that you do an "ls" first to get the list of files in the remote directory. Then you could loop through the list of files and get them individually.


    Peter L. Berghold -- Unix Professional
    Peter -at- Berghold -dot- Net; AOL IM redcowdawg Yahoo IM: blue_cowdawg
Re: ftp get (*.xml)
by Anonymous Monk on Apr 27, 2013 at 02:09 UTC

    Hi,

    I seem to remember mget, does that still exist?

    J.C.

Re: ftp get (*.xml)
by Lotus1 (Vicar) on Apr 28, 2013 at 02:16 UTC