Help: Login FTP

Hello,

I wanna write a script that it can login the FTP server and go to the
specific directory to get the file list and download files. But I don't
know how to pass the user name part and password part. The FTP server is
an anonymous server.

My question is: Are there any Perl modules than can help users login FTP
without password and user name? Furthermore, which modules can help me get
file lists like "ls -l" in FTP server?

Thank you very much~

Regards,

Amy Lee
Amy Lee [ Do, 17 Januar 2008 16:17 ] [ ID #1910942 ]

Re: Help: Login FTP

1) Go to http://search.cpan.org/
2) In the textbox enter "FTP"
3) Click on the first result
4) Read & meditate

Amy Lee wrote:
> Hello,
>
> I wanna write a script that it can login the FTP server and go to the
> specific directory to get the file list and download files. But I don't
> know how to pass the user name part and password part. The FTP server is
> an anonymous server.
>
> My question is: Are there any Perl modules than can help users login FTP
> without password and user name? Furthermore, which modules can help me get
> file lists like "ls -l" in FTP server?
>
> Thank you very much~
>
> Regards,
>
> Amy Lee
Peter Ludikovsky [ Do, 17 Januar 2008 16:22 ] [ ID #1910945 ]

Re: Help: Login FTP

On Thu, 17 Jan 2008 16:22:18 +0100, Peter Ludikovsky wrote:

> 1) Go to http://search.cpan.org/
> 2) In the textbox enter "FTP"
> 3) Click on the first result
> 4) Read & meditate
>
> Amy Lee wrote:
>> Hello,
>>
>> I wanna write a script that it can login the FTP server and go to the
>> specific directory to get the file list and download files. But I don't
>> know how to pass the user name part and password part. The FTP server is
>> an anonymous server.
>>
>> My question is: Are there any Perl modules than can help users login FTP
>> without password and user name? Furthermore, which modules can help me get
>> file lists like "ls -l" in FTP server?
>>
>> Thank you very much~
>>
>> Regards,
>>
>> Amy Lee
Thanks your advice. However I've done this before I posted this article.
There are so many modules about FTP, I can't find what actually I need. So
could you tell me more details?

TIA.

Amy
Amy Lee [ Do, 17 Januar 2008 16:40 ] [ ID #1910948 ]

Re: Help: Login FTP

On Jan 17, 7:40 am, Amy Lee <openlinuxsou... [at] gmail.com> wrote:
> On Thu, 17 Jan 2008 16:22:18 +0100, Peter Ludikovsky wrote:
> > 1) Go tohttp://search.cpan.org/
> > 2) In the textbox enter "FTP"
> > 3) Click on the first result
> > 4) Read & meditate
>
> > Amy Lee wrote:
> >> Hello,
>
> >> I wanna write a script that it can login the FTP server and go to the
> >> specific directory to get the file list and download files. But I don't
> >> know how to pass the user name part and password part. The FTP server is
> >> an anonymous server.
>
> >> My question is: Are there any Perl modules than can help users login FTP
> >> without password and user name? Furthermore, which modules can help me get
> >> file lists like "ls -l" in FTP server?
>
> >> Thank you very much~
>
> >> Regards,
>
> >> Amy Lee
>
> Thanks your advice. However I've done this before I posted this article.
> There are so many modules about FTP, I can't find what actually I need. So
> could you tell me more details?
>
> TIA.
>
> Amy

http://search.cpan.org/~gbarr/libnet-1.22/Net/FTP.pm
Ron Bergin [ Do, 17 Januar 2008 17:08 ] [ ID #1910950 ]

Re: Help: Login FTP

On Jan 17, 7:40 am, Amy Lee <openlinuxsou... [at] gmail.com> wrote:
> On Thu, 17 Jan 2008 16:22:18 +0100, Peter Ludikovsky wrote:
> > 1) Go tohttp://search.cpan.org/
> > 2) In the textbox enter "FTP"
> > 3) Click on the first result
> > 4) Read & meditate
>
> > Amy Lee wrote:
> >> Hello,
>
> >> I wanna write a script that it can login the FTP server and go to the
> >> specific directory to get the file list and download files. But I don't
> >> know how to pass the user name part and password part. The FTP server is
> >> an anonymous server.
>
> >> My question is: Are there any Perl modules than can help users login FTP
> >> without password and user name? Furthermore, which modules can help me get
> >> file lists like "ls -l" in FTP server?
>
> >> Thank you very much~
>
> >> Regards,
>
> >> Amy Lee
>
> Thanks your advice. However I've done this before I posted this article.
> There are so many modules about FTP, I can't find what actually I need. So
> could you tell me more details?
>
> TIA.
>
> Amy

http://search.cpan.org/~gbarr/libnet-1.22/Net/FTP.pm
Ron Bergin [ Do, 17 Januar 2008 17:08 ] [ ID #1910951 ]

Re: Help: Login FTP

On Thu, 17 Jan 2008 08:08:42 -0800, Ron Bergin wrote:

> On Jan 17, 7:40 am, Amy Lee <openlinuxsou... [at] gmail.com> wrote:
>> On Thu, 17 Jan 2008 16:22:18 +0100, Peter Ludikovsky wrote:
>> > 1) Go tohttp://search.cpan.org/
>> > 2) In the textbox enter "FTP"
>> > 3) Click on the first result
>> > 4) Read & meditate
>>
>> > Amy Lee wrote:
>> >> Hello,
>>
>> >> I wanna write a script that it can login the FTP server and go to the
>> >> specific directory to get the file list and download files. But I don't
>> >> know how to pass the user name part and password part. The FTP server is
>> >> an anonymous server.
>>
>> >> My question is: Are there any Perl modules than can help users login FTP
>> >> without password and user name? Furthermore, which modules can help me get
>> >> file lists like "ls -l" in FTP server?
>>
>> >> Thank you very much~
>>
>> >> Regards,
>>
>> >> Amy Lee
>>
>> Thanks your advice. However I've done this before I posted this article.
>> There are so many modules about FTP, I can't find what actually I need. So
>> could you tell me more details?
>>
>> TIA.
>>
>> Amy
>
> http://search.cpan.org/~gbarr/libnet-1.22/Net/FTP.pm
Thank you very much! I've got it.

Amy
Amy Lee [ Do, 17 Januar 2008 18:21 ] [ ID #1910958 ]

Re: Help: Login FTP

In article <1200583365.481814 [at] nntpcache01.si.eunet.at>, Peter
Ludikovsky <darthludi [at] gmail.com> wrote:

[top-posting fixed]

> Amy Lee wrote:
> > Hello,
> >
> > I wanna write a script that it can login the FTP server and go to the
> > specific directory to get the file list and download files. But I don't
> > know how to pass the user name part and password part. The FTP server is
> > an anonymous server.
> >
> > My question is: Are there any Perl modules than can help users login FTP
> > without password and user name? Furthermore, which modules can help me get
> > file lists like "ls -l" in FTP server?

> 1) Go to http://search.cpan.org/
> 2) In the textbox enter "FTP"
> 3) Click on the first result
> 4) Read & meditate

.... or trying entering 'perldoc -q ftp' at a command-line prompt.

--
Jim Gibson

Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
Jim Gibson [ Do, 17 Januar 2008 19:54 ] [ ID #1910967 ]

Re: Help: Login FTP

Amy Lee <openlinuxsource [at] gmail.com> wrote:
> On Thu, 17 Jan 2008 16:22:18 +0100, Peter Ludikovsky wrote:
>
>> 1) Go to http://search.cpan.org/
>> 2) In the textbox enter "FTP"
>> 3) Click on the first result
>> 4) Read & meditate


> Thanks your advice. However I've done this before I posted this article.
> There are so many modules about FTP, I can't find what actually I need. So
> could you tell me more details?


You appear to not have followed step 3...


--
Tad McClellan
email: perl -le "print scalar reverse qq/moc.noitatibaher\100cmdat/"
Tad J McClellan [ Fr, 18 Januar 2008 00:31 ] [ ID #1911653 ]
Perl » comp.lang.perl.misc » Help: Login FTP

Vorheriges Thema: Shrink large file according to REG_EXP
Nächstes Thema: FAQ 8.20 How can I call my system's unique C functions from Perl?