FutureQuest, Inc. FutureQuest, Inc. FutureQuest, Inc.

FutureQuest, Inc.
Go Back   FutureQuest Community > FutureQuest Site Owners (All may read - Only Site Owners May Respond) > Server FAQ
User Name
Password  Lost PW

Reply
 
Thread Tools Search this Thread Display Modes
Old 06-24-1999, 04:33 AM   Postid: 38099
Stephen
Registered User

Forum Notability:
89 pts: Helpful Contributor
[Post Feedback]
 
Join Date: Feb 1999
Location: L.A.
Posts: 671
Problems using Net::FTP

I had been wondering how to solve an FTP problem and came up with this Perl module as a possible solution. But I can't seem to log in to FQ using it.

When I try this:

$ftp = Net::FTP->new($ftp_host);
$success = $ftp->login($username,$password,$account);

with $ftp_host = www.mydomain.com or ftp.mydomain.com and $account = 'xdomain' it returns false with an error message of 'login incorrect' (from $ftp->message). Likewise, leaving off $account it fails. I haven't used this module before, so if someone could tell me what foolish thing I'm doing I'd appreciate it.

Thanks.
Stephen is offline   Reply With Quote
Old 06-24-1999, 07:11 AM   Postid: 38100
Rich
Merchant Rep
 
Rich's Avatar

Forum Notability:
153 pts: Ambassador of Goodwill
[Post Feedback]
 
Join Date: Nov 1998
Location: Indiana, USA
Posts: 1,658
Have you tried $ftp_host='mydomain.com' ?

Just a thought.
Rich


[This message has been edited by Rich (edited 06-24-99)]
Rich is offline   Reply With Quote
Old 06-24-1999, 10:03 AM   Postid: 38101
Justin
Registered User
 
Justin's Avatar

Forum Notability:
0 pts:
[Post Feedback]
 
Join Date: Jan 1999
Location: Kissimmee, FL
Posts: 3,672
Are you trying to ftp into the same site that you are runnng this script from? If so, a much easier way to access the files would be to write a file manager type program... unless you are just using your ftp to test the program

Otherwise, I'm not familiar with the module yet - I'm just starting to learn the LWP::Simple module myself...

------------------
Justin Nelson
FutureQuest Support
Justin is offline   Reply With Quote
Old 06-24-1999, 02:08 PM   Postid: 38102
Stephen
Registered User

Forum Notability:
89 pts: Helpful Contributor
[Post Feedback]
 
Join Date: Feb 1999
Location: L.A.
Posts: 671
What a dunce I am!

This kind of thing has tripped me up before. Because I was so paranoid about leaving my password in a file I went to a lot of trouble to encrypt it and just leave that sitting around. Then I decrypt it (with a subroutine external to the file) at run time. That works fine. Trouble is, I got so side-tracked with all the encryption stuff that I actually forgot to use it!! I still had the unencrypted password sitting in the login call. (yeah, whack me in the head, I deserve it this time).

OK. So false alarm. Actually I'm looking forward to learning this Net::FTP stuff. I've been doing a bit of Socket programming lately and this "pretend to be a browser" or "pretend to be an FTP client" stuff is not only fun, it's mighty powerful. Lots of potential applications await the internet entrepeneur... and I intend to be one of them!
Stephen is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 visitors)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 12:24 AM.


Running on vBulletin®
Copyright © 2000 - 2019, Jelsoft Enterprises Ltd.
Hosted & Administrated by FutureQuest, Inc.
Images & content copyright © 1998-2019 FutureQuest, Inc.
FutureQuest, Inc.