in reply to Re: Having a problem with Net::FTP, I think...
in thread Having a problem with Net::FTP, I think...

It is stalling after print "Preparing to put $element into $directory on $domain...\n";.

Replies are listed 'Best First'.
Re^3: Having a problem with Net::FTP, I think...
by Spidy (Chaplain) on Sep 05, 2005 at 23:55 UTC
    After turning on $ftp->debug(1);, this was what was returned at the stallpoint:
    Net::FTP=GLOB(0x18bbb90)>>> ALLO 5012 Net::FTP=GLOB(0x18bbb90)<<< 200 Zzz... Net::FTP=GLOB(0x18bbb90)>>> PORT ***** Net::FTP=GLOB(0x18bbb90)<<< 200 PORT command successful Net::FTP=GLOB(0x18bbb90)>>> STOR ****.cgi
      Hmmm...I think you are running into issues with your client/server and perhaps nothing to do with your script.

      You might want to try log-in to the server manually using a FTP program and then try uploading a file...I tried uploading (using your script) to a directory that i don't have permission and it quits with "permission denied" error message. So i am guessing it is not a permission issue.

      Do you have firewalls running?

      Another way to check the script is to login into the server (ssh/telnet/rlogin etc. if you can) and then try to run the program on the same server. if you can upload the file then it is your remote machine that is causing the issue.

      cheers

      SK

        I took my firewall down, and it worked there...I'm running on OS X, does anyone know exactly which preference I'd need to change in my firewall settings to let it work?