question regarding ftp. Files downloaded are of size Zero.


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users question regarding ftp. Files downloaded are of size Zero.
# 1  
Old 08-28-2006
question regarding ftp. Files downloaded are of size Zero.

I need to download some files from a remote server using ftp. I have ftp'd into the site. I then do an mget * to retrieve all of the data files. Everything seems to proceed normally and I am given feedback that the files were downloaded. Now if I go into the DOS Shell or Windows explorer, it list the file names of the files I downloaded, but the files are empty, showing a file size of Zero.

I tried downloading the files in binary mode, as well as ascii mode, but the same problem occurs.

Does anyone know what the problem is here? Why are the files of size Zero?
# 2  
Old 08-28-2006
What errors do you see?

add the word "verbose" to what you type in - sample session:
Code:
ftp -i mysite.com
username
password
verbose
bin
mget file*
bye

What does ftp say now?
# 3  
Old 08-28-2006
Need more help

Thank you for your advice. I tried what you suggested, but the same problem occurs.
Note here is the error message I am getting:

ftp>bin
ftp>verbose
Verbose mode On.
ftp>mget *
PORT command succesful. Consider using PASV.
failed to open file.
PORT command succesful. Consider using PASV.
failed to open file.
PORT command succesful. Consider using PASV.
failed to open file.
PORT command succesful. Consider using PASV.
failed to open file.
# 4  
Old 08-28-2006
You have one of these problems - I think:

1. protection violation on the remote box - ie., you can't open the file for read

2. Windows firewalls(s) are getting in the way. You may have to change change something in Windows or use passive mode ftp. To get ftp into passive mode just type
PASSIVE before you try to mget the files.
# 5  
Old 08-28-2006
ps:

VERBOSE displays more information, so we see what is wrong. It doesn't fix anything.
If you read what you posted, "failed to open file" explains that you are not opening the file on the remote server. So you can't copy it over yto your Windows box.
# 6  
Old 08-31-2006
could it be that your local filesystem/ drive is full, which is why you can create inodes BUT UNABLE to write the data into the inode/file?
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Deleting multiple files off an ftp server once they have been downloaded

Hello, I have a server that I have to ftp files off and they all start SGRD and are followed by 6 numbers. SGRD000001 SGRD000002 SGRD000003 The script I have will run every 10 mins to pick up files as new ones will be coming in all the time and what I want to do is delete the files I have... (7 Replies)
Discussion started by: sph90457
7 Replies

2. Shell Programming and Scripting

For loop till the files downloaded

Need assistance in writing a for loop script or any looping method. Below is the code where i can get all the files from the URL . There are about 80 files in the URL .Every day the files get updated . Script that i wanted is the loop must keep on running till it gets 80 files. It matches the count... (5 Replies)
Discussion started by: ajayram_arya
5 Replies

3. Shell Programming and Scripting

BASH scripting - Preventing wget messed downloaded files

hello. How can I detect within script, that the downloaded file had not a correct size. linux:~ # wget --limit-rate=20k --ignore-length -O /Software_Downloaded/MULTIMEDIA_ADDON/skype-4.1.0.20-suse.i586.rpm ... (6 Replies)
Discussion started by: jcdole
6 Replies

4. Shell Programming and Scripting

Ftp : Size

Hi All, I have a very simple requirement which is stopping me from completing my assignment. During FTP session, I can get the size of the file using "`size filename`". In the same way how to get the size of a directory?? I've searched our site as well as the web, couldn't find anything... (4 Replies)
Discussion started by: Naga06
4 Replies

5. Web Development

php files are downloaded

Hello, I have setup Cherokee web server and php 5.2 in Opensolaris zone. Problem is that all .php files are downloaded from web server and not served when I use IP address instead of DNS name in web brovser. Example: test.mydomain.com <-- php works 192.168.0.10/index.php <--... (3 Replies)
Discussion started by: kreno
3 Replies

6. Shell Programming and Scripting

Help with WGET and renaming downloaded files :(

Hi everybody, I would greatly appreciate some expertise in this matter. I am trying find an efficient way to batch download files from a website and rename each file with the url it originated from (from the CLI). (ie. Instead of xyz.zip, the output file would be http://www.abc.com/xyz.zip) A... (10 Replies)
Discussion started by: o0110o
10 Replies

7. Shell Programming and Scripting

how to limit files downloaded by wget

I am trying to download a page and retrieve only wav and mp3 files via wget. the website is: Alarm Sounds | Free Sound Effects | Alarm Sound Clips | Sound Bites my command is : wget -rl 2 -e robots=off -A wav,mp3 http://soundbible.com/tags-alarm.html When not using the -A wav,mp3... (2 Replies)
Discussion started by: Narnie
2 Replies

8. UNIX for Advanced & Expert Users

Count total file downloaded using FTP

Hi All, I'm developing a FTP script as below: ftp -v -n <IP_ADDRESS> << EOF user avery jSqaqUU2 lcd /directory/folder/ ascii prompt mget * bye EOF I would like to enhance the script to count the total file downloaded. For example, once the script run i want the message "Total <n>... (1 Reply)
Discussion started by: cas553
1 Replies

9. Shell Programming and Scripting

bash script working for small size files but not for big size files.

Hi, I have one file stat. Stat file contents are as follows: for example. H50768020040913,00260100,507680,13,0000000643,0000000643,00000,0000 H50769520040808,00260100,507695,13,0000000000,0000000000,00000,0000 H50770620040611,00260100,507706,13,0000000000,0000000000,00000,0000 Now i... (1 Reply)
Discussion started by: davidpreml
1 Replies
Login or Register to Ask a Question