Welcome to WebmasterWorld Guest from 54.167.175.157

Forum Moderators: phranque

command line ftp connection closed by remote host

trying to upload from command line script

   
7:14 pm on Apr 22, 2013 (gmt 0)

5+ Year Member



So strange, had a backup script running and now it is breaking.

Basically I can see the script puts the file on the server, it just has 0kb?

Here is my batch command
FTP -v -i -s:"C:\_shutdown\ftp.txt"

Here is my ftp.txt

open ftp.zzz.zzz
backup@zzz.zzz
zzzzzzzzzzzzzzz
lcd C:\_backup
cd /
binary
mput *.7z
disconnect
bye


When I run this batch script, it shows me connecting to the remote server, then it pauses and says "connection closed by remote host"

When I log in with win scp with the same credentials I can see the file there with 0kb. Also, note that when I upload with win scp I have no problems. So clearly this is something with the windows 7 ftp command line client? I've even tried uploading to different servers and I get the same result. I've also tried disabling my firewall but that doesnt make any difference.
7:43 pm on Apr 22, 2013 (gmt 0)

5+ Year Member



Ok so after some more testing I found a few things

first of all my pc has a dedicated ip (192.168.7.85)

when I change my ip to 192.168.7.177 then the files upload fine and are not 0kb?

what could be going on here?
7:45 pm on Apr 22, 2013 (gmt 0)

5+ Year Member



its seems as long as I make my ip address over .99 everything is fine?
8:43 pm on Apr 22, 2013 (gmt 0)

5+ Year Member



Also, have an issue that when uploading more than 1 file the 1st one uploads but the 2nd one shows 0kb?
9:54 pm on Apr 22, 2013 (gmt 0)

WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



does "uploading more than 1" mean the subsquent "put" fails or the 2nd file of an "mput" command?
9:59 pm on Apr 22, 2013 (gmt 0)

5+ Year Member



yes, it hangs on the 2nd one and then says connection closed by remote host
5:07 pm on Apr 23, 2013 (gmt 0)

WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



my question was either/or, not yes/no...
6:18 pm on Apr 23, 2013 (gmt 0)

5+ Year Member



2nd file of an mput command

and what about the whole IP thing? Our office server was .10 and the 7zip backup was uploading but on the server it was 0kb. I changed the office server to .100 and now it works fine?
 

Featured Threads

Hot Threads This Week

Hot Threads This Month