Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: net::ftp please

by diskcrash (Hermit)
on Apr 18, 2001 at 04:36 UTC ( #73400=note: print w/replies, xml ) Need Help??


in reply to net::ftp please

Am I missing something? You set $user='warez' but then use $username in the login call.

-diskcrash

Replies are listed 'Best First'.
Re: Re: net::ftp please
by Anonymous Monk on Apr 18, 2001 at 04:42 UTC
    <http> <body> No... the script is just a template.. it's not the real script.. like i'm sure i'm going to type my real username and password.. I may not be very good at perl.. but i'm not a complete idiot.

    -Lisa
      What I meant was $user is not $username. If this is just a typo from the "template", fine. How about the real code, but with stubbed out user content?

      -diskcrash

        <http> <body> Yea.. here's the real script i'm running.. with my name
        inserted instead.. also.. here's the module list from verio:
        http://home.verio.com/support/hosting/perl_modules.cfm
        Would the first line of the script still use double comma's?

        Lisa.

        use Net::FTP;
        my $hostname='Lisa.com';
        my $user='Lisa';
        my $password='Lisa';
        my $ftp=Net::FTP -> new($hostname) or die ("Connect failed");
        $ftp->login($username,$password);
        $ftp->binary;
        $ftp->cwd("/pub/uploads");
        $ftp->put("mystuff.txt");
        $ftp->get("warezlist.txt");
        $ftp->quit

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://73400]
help
Chatterbox?
[Corion]: Meh, stupid people are associated with every president
[Corion]: (or presidential candidate)
[Corion]: And if you only have two candidates, you can expect some of the stupid people to make the "right" choice by chance ;)
[erix]: I think it's a little worse this time :)
[Discipulus]: yes; even broken clock show the right time twice a day

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (9)
As of 2017-01-24 08:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (203 votes). Check out past polls.