Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Problem with FTP  (Read 11954 times)

0 Members and 1 Guest are viewing this topic.

Helpmeh

    Topic Starter


    Guru

  • Roar.
  • Thanked: 123
    • Yes
    • Yes
  • Computer: Specs
  • Experience: Familiar
  • OS: Windows 8
Problem with FTP
« on: September 07, 2009, 02:02:27 PM »
Hey, I'm trying to use ftp to send and recieve files, but I noticed it was taking a really long time to continue on with the script, and the file I was supposed to recieve never came. I added pause after it and I got this:

Connecting to 0catch.com.
Connection closed by remote host.
Press any key to continue . . .

Can anyone help?
Where's MagicSpeed?
Quote from: 'matt'
He's playing a game called IRL. Great graphics, *censored* gameplay.

patio

  • Moderator


  • Genius
  • Maud' Dib
  • Thanked: 1769
    • Yes
  • Experience: Beginner
  • OS: Windows 7
Re: Problem with FTP
« Reply #1 on: September 07, 2009, 02:05:59 PM »
What client ? ?
" Anyone who goes to a psychiatrist should have his head examined. "

Helpmeh

    Topic Starter


    Guru

  • Roar.
  • Thanked: 123
    • Yes
    • Yes
  • Computer: Specs
  • Experience: Familiar
  • OS: Windows 8
Re: Problem with FTP
« Reply #2 on: September 07, 2009, 02:08:50 PM »
It's in batch, with the FTP command.
Where's MagicSpeed?
Quote from: 'matt'
He's playing a game called IRL. Great graphics, *censored* gameplay.

patio

  • Moderator


  • Genius
  • Maud' Dib
  • Thanked: 1769
    • Yes
  • Experience: Beginner
  • OS: Windows 7
Re: Problem with FTP
« Reply #3 on: September 07, 2009, 02:15:49 PM »
Then you need to post your batchfile...
" Anyone who goes to a psychiatrist should have his head examined. "

Helpmeh

    Topic Starter


    Guru

  • Roar.
  • Thanked: 123
    • Yes
    • Yes
  • Computer: Specs
  • Experience: Familiar
  • OS: Windows 8
Re: Problem with FTP
« Reply #4 on: September 07, 2009, 02:19:14 PM »
@echo off
:loop
cls
echo open>C:\schoolchatdatar.oti
echo USERNAME>>C:\schoolchatdatar.oti
echo PASSWORD>>C:\schoolchatdatar.oti
echo get test.txt>>C:\schoolchatdatar.oti
echo bye>>C:\schoolchatdatar.oti
pause
ftp -i -s:C:\schoolchatdatar.oti 0catch.com
pause
del C:\schoolchatdatar.oti
type test.txt
rem The above confirms that the FTP is working correctly and the file exists.
pause
goto loop


That's the code I started with. I haven't even started my real code because I need this to work first.
Where's MagicSpeed?
Quote from: 'matt'
He's playing a game called IRL. Great graphics, *censored* gameplay.

Helpmeh

    Topic Starter


    Guru

  • Roar.
  • Thanked: 123
    • Yes
    • Yes
  • Computer: Specs
  • Experience: Familiar
  • OS: Windows 8
Re: Problem with FTP
« Reply #5 on: September 09, 2009, 01:40:15 PM »
Anyone?
Where's MagicSpeed?
Quote from: 'matt'
He's playing a game called IRL. Great graphics, *censored* gameplay.

gh0std0g74



    Apprentice

    Thanked: 37
    Re: Problem with FTP
    « Reply #6 on: September 09, 2009, 05:36:09 PM »
    you just put a "pause" in your script for troubleshooting right? or is it part of the logic.?

    Helpmeh

      Topic Starter


      Guru

    • Roar.
    • Thanked: 123
      • Yes
      • Yes
    • Computer: Specs
    • Experience: Familiar
    • OS: Windows 8
    Re: Problem with FTP
    « Reply #7 on: September 09, 2009, 05:42:57 PM »
    Troubleshooting. I wanted to find out why the files weren't being transfer.
    Where's MagicSpeed?
    Quote from: 'matt'
    He's playing a game called IRL. Great graphics, *censored* gameplay.

    gh0std0g74



      Apprentice

      Thanked: 37
      Re: Problem with FTP
      « Reply #8 on: September 09, 2009, 06:25:09 PM »
      make sure you there is no firewall restricting your ftp connection between u and the other side
      Quote
      ftp -i -s:C:\schoolchatdatar.oti 0catch.com

      Geek-9pm


        Mastermind
      • Geek After Dark
      • Thanked: 1026
        • Gekk9pm bnlog
      • Certifications: List
      • Computer: Specs
      • Experience: Expert
      • OS: Windows 10
      Re: Problem with FTP
      « Reply #9 on: September 09, 2009, 06:29:34 PM »
      Use a FTP client.
      For example, the old WS_FTP still works and will run from the command line and in a batch file.

      Helpmeh

        Topic Starter


        Guru

      • Roar.
      • Thanked: 123
        • Yes
        • Yes
      • Computer: Specs
      • Experience: Familiar
      • OS: Windows 8
      Re: Problem with FTP
      « Reply #10 on: September 09, 2009, 06:53:15 PM »
      I don't think there is an issue with my firewall. I'll try that ftp client if I get a chance.
      Where's MagicSpeed?
      Quote from: 'matt'
      He's playing a game called IRL. Great graphics, *censored* gameplay.

      gh0std0g74



        Apprentice

        Thanked: 37
        Re: Problem with FTP
        « Reply #11 on: September 09, 2009, 07:33:23 PM »
        the error message posted in your first post is very clear.. the packets reached the remote host but its closed by it. most probably, there might be firewall issues AT THE OTHER SIDE. make sure the other side allows ftp for you. Also make sure the other side gives your account the access to ftp.

        Helpmeh

          Topic Starter


          Guru

        • Roar.
        • Thanked: 123
          • Yes
          • Yes
        • Computer: Specs
        • Experience: Familiar
        • OS: Windows 8
        Re: Problem with FTP
        « Reply #12 on: September 09, 2009, 07:36:54 PM »
        It does have FTP. It even gives a deal on CuteFTP. And I used the proper information.
        Host: 0catch.com
        Username: sub-domain.0catch.com
        Password: Login password.
        Where's MagicSpeed?
        Quote from: 'matt'
        He's playing a game called IRL. Great graphics, *censored* gameplay.

        Geek-9pm


          Mastermind
        • Geek After Dark
        • Thanked: 1026
          • Gekk9pm bnlog
        • Certifications: List
        • Computer: Specs
        • Experience: Expert
        • OS: Windows 10
        Re: Problem with FTP
        « Reply #13 on: September 09, 2009, 08:43:05 PM »
        Quote
        Host: 0catch.com
        Username: sub-domain.0catch.com
        Password: Login password.

        Something is not right. I tried to ftp to that site and it did not like the password. A password should not have a space in it.

        Helpmeh

          Topic Starter


          Guru

        • Roar.
        • Thanked: 123
          • Yes
          • Yes
        • Computer: Specs
        • Experience: Familiar
        • OS: Windows 8
        Re: Problem with FTP
        « Reply #14 on: September 09, 2009, 08:50:23 PM »
        I just put that there. It's not my password. The password you use for ftp is the password used to log in to the site's cp.
        Where's MagicSpeed?
        Quote from: 'matt'
        He's playing a game called IRL. Great graphics, *censored* gameplay.