ftp whole directory


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting ftp whole directory
# 1  
Old 05-25-2012
Bug ftp whole directory

HI Guys,

I have downloaded the oracle binaries from oracle.com, i have unziped them in a directory say OWB. I have to copy them to my windows server so i have ran the ftp command.

It looks like i can ftp whole directory.

Can you please get me the command to get all the files and subdirectory the main directory.

OWB11gr2.zip -in unix
OWB -- all the unzip files from OWB11gr2.
in window - i want like this
ftp >get OWB c:\BOadmin
# 2  
Old 05-25-2012
did you try
Code:
 mget *

?
# 3  
Old 05-25-2012
Yes , i tried but is say no such file exit c:\OWB

---------- Post updated at 07:14 AM ---------- Previous update was at 07:04 AM ----------

mget dot work as there are many subdirectories exit in the directory, when trying to execute it say not a plain file
# 4  
Old 05-25-2012
I think, you trying to put your files from your local machine to windows server.

In that case -
try to connect to windows server using ftp from the local directory where you have the files.

change the remote directory where you want to put files.

then try
Code:
 mput

make sure that directory has write permission.
# 5  
Old 05-25-2012
Wouldn't it be easier to ftp the zip file to the Windows box and they unizip there? Or just download the zip file again directly to the Window box and thereby make 100% sure that you get a Windows version.

There is no ftp command which will copy an entire directory tree.
# 6  
Old 05-25-2012
Hi,

I have downloaded the windown installer on windows only, this will be installed on different windows server so what i did is to copied the installer to unix and connected on windows server and ran the ftp to get the installer from unix. i have copied successfuly the zip file but i am unable to unzip them in windows server it say the archive is currupt. so i dicided to unzip in unix and run mget to collect all the files.

Any help will save my hell lot of time.

Thanks

Rajesh
# 7  
Old 05-25-2012
Quote:
i have copied successfuly the zip file but i am unable to unzip them in windows server it say the archive is currupt.
It is probably corrupted indeed. Check with md5 (generally provided on same page from where you downloaded the file) or similar utilities.

Make sure the original zip file is not corrupted. Then..
put file.zip in BINARY mode on unix and get file.zip in the same mode on windows.

If you do want to ftp the unzipped directory on windows, you have to create a tar archive (and probably a gzip to compress) and untar/gunzip it on windows with the utilities like winrar.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Replicate remote directory to local directory with ftp

I have system that generate files every 1 hours , i only have ftp connection from my local server to remote . $ ls -al -rw-r--r-- 1 water None 0 Feb 7 18:09 a.0800 -rw-r--r-- 1 water None 0 Feb 7 18:09 a.0900 -rw-r--r-- 1 water None 0 Feb 7 18:09 a.1000 is there any perl / php... (3 Replies)
Discussion started by: before4
3 Replies

2. Shell Programming and Scripting

FTP from one directory to another using perl

Hi All I am stuck with a problem and i want your help, I have two directories dir1 and dir2 The files present in dir1 is a1,a2 a3 a4 What i want to is to FTP the files present in the dir1 to dir2 (with .txt extension at the end.) with the help of the Perl. The output expected is The... (12 Replies)
Discussion started by: parthmittal2007
12 Replies

3. Shell Programming and Scripting

Is it possible to move a directory using ftp??

Hi all, Is it possible to move a directory using ftp service?? (2 Replies)
Discussion started by: eeegopikannan
2 Replies

4. Shell Programming and Scripting

FTP files from different directory from remote server to one directory in local

Hi All, I want to search for .log files from folders and sub folders in remote server and FTP them to one particular folder in the local machine. I dont want to copy the entire directory tree structure, just have to take all the .log files from all the folders by doing a recursive search from the... (3 Replies)
Discussion started by: dassv
3 Replies

5. AIX

ftp mget directory

Hi, I have searched everywhere for an answer to this question but couldn't find one so I ask it here. From an AIX 5.3 machine I ftp to another AIX 5.3 server. I want to get all files and only files in a directory. This directory has a subdirectory with files in it. In ftp, I enter the... (5 Replies)
Discussion started by: bheinsius
5 Replies

6. Solaris

ftp default directory

how to change the default login directory for a specified user when ftp to unix machine. (1 Reply)
Discussion started by: mm00123
1 Replies

7. UNIX for Dummies Questions & Answers

can we ftp a directory

Hi guyz, Is there any way to ftp a whole directory structure. I mean is there any way using which I can get the whole directory ftpied including the subdirectories Thanks and regards, Gauravv (17 Replies)
Discussion started by: gauravgoel
17 Replies

8. UNIX for Dummies Questions & Answers

Downloading whole directory with FTP

Is it possible using FTP to download a whole directory and all subdirectories at once without having to go through every single file? Thanks, Tom (4 Replies)
Discussion started by: Pokeyzx
4 Replies

9. UNIX for Dummies Questions & Answers

ftp a directory

How does one ftp an entire directory from one Solaris 5.9 machine to another with out moving one file at a time? (4 Replies)
Discussion started by: DarkLord
4 Replies

10. UNIX for Dummies Questions & Answers

ftp-directory

Some users get on our server with ftp with a specific username (i.e. guest). The users guest has an own group. The user guest is in the path /usr/guests after login. How can I lock the user guest that he don't get up to the /usr treee. I tried to change the rights for the .. But it's not anymore... (1 Reply)
Discussion started by: arn_ch
1 Replies
Login or Register to Ask a Question