in reply to Re: Re: ...That's how perlmonks works [Re: Re: Re: trouble while ftping through Perl Script]
in thread trouble while ftping through Perl Script

:-( The problem is - I cannot change the password...and there is only one userid that I can use to connect to this server.
There is one thing I noticed....
From the command prompt, if I try to login through Method1, it allows me to login whereas if I try to login through Method2, it gives me the same error message - Login incorrect.
Any idea why this happens?
Method 1 (WORKING)
ftp -n open ftp.servername.com user username P\$a\$ss\$ >> 230 User username logged in. Access restrictions apply.
Method 2 (NOT WORKING)
ftp -n open ftp.servername.com user username >> 331 Password required for username I enter the same password i.e. P\$a\$ss\$ I get the error message >> 530 Login incorrect. Login failed.
  • Comment on Re: Re: Re: ...That's how perlmonks works [Re: Re: Re: trouble while ftping through Perl Script]
  • Select or Download Code

Replies are listed 'Best First'.
Re: Re: Re: Re: ...That's how perlmonks works [Re: Re: Re: trouble while ftping through Perl Script]
by Plankton (Vicar) on May 01, 2004 at 00:28 UTC
    Hmmm ... it is probably just a typo in your post but I noticed that in your Perl script you used ...
    my $password = 'pa\ss\wor$d$';
    ... and in your last post you use the password ...
    user username P\$a\$ss\$
    Are you very sure you are using the correct password? Maybe you should look into using sftp with PKI so you won't have to use passwords.

    Plankton: 1% Evil, 99% Hot Gas.
      It was indeed a typo mistake.
      I have checked that the password I am using is the correct one.
      Do you have any idea about the question I had asked earlier about the problem connecting to the ftp server through Method1 but it does not allow me to login using Method2?