How to Transfer a whole Directory from unix to windows using FTP?


 
Thread Tools Search this Thread
Special Forums IP Networking How to Transfer a whole Directory from unix to windows using FTP?
# 1  
Old 12-03-2006
How to Transfer a whole Directory from unix to windows using FTP?

Hi

I can transfer a single file and multiple file from unix to widows using get and mget command.But i dont know How to transfer a whole directory from unix to windows using command.

pls help me

Ramkumar
# 2  
Old 12-03-2006
One way for a single-level directory (no sub-directories - you have to send a tarball for that)
Code:
filenames= $(
find /path -print |\
while read $file 
do
   echo "put $file"
done )

ftp -nv<<EOF
open winnode
user $username $password
ASC
$files
bye
EOF

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to transfer file from Local PC to UNIX Directory without FTP?

Dear All, i am trying to get the file from windows location to unix location without using FTP and neither thru entering the user id and password. I have one unix form which is running on web application and user is entering the location and file name there now i know the file name and path. So i... (8 Replies)
Discussion started by: ripudaman.singh
8 Replies

2. IP Networking

How to transfer files from UNIX server to windows machine or vice versa using ftp or sftp commands?

hi, i want to write a shell script code which transfers files from a directory in unix server to a directory in a windows machine.. can any1 give me a sample code which uses ftp or sftp command.. thanks very much, (3 Replies)
Discussion started by: Little
3 Replies

3. Shell Programming and Scripting

Transfer files from linux server to windows using secure ftp (sftp)

HI, I have to transfer files from linux server to windows using secure ftp (sftp) .Kindly help me out. (3 Replies)
Discussion started by: manushi88
3 Replies

4. UNIX for Dummies Questions & Answers

How to transfer file from Local PC to Unix Directory without FTP!!!

Dear Friends, How to transfer files from my local PC to Unix directory without using FTP. Scenario: Transfer/Upload a file from PC to unix using web browser without using FTP technologies. I heard something like sendunix and sendpc used to transfer files from unix to Desktop and... (1 Reply)
Discussion started by: kk_c2il2
1 Replies

5. Shell Programming and Scripting

File transfer from one directory to another directory in unix

Hi, I have to transfer five files from one directory to another directory in unix with the help of shell scripts. This shell script calling the param file as input parameter. Every day one file will come and fall on my source directory. Remaining files will fall on any one of the day of the... (5 Replies)
Discussion started by: easterraj
5 Replies

6. Shell Programming and Scripting

file transfer from windows to unix using ftp

Hi all, I have a file in windows, example a.txt **** aaa bbb ccc <empty line> when i transfer this file to unix using ftp, and viewed the file # vi a.txt aaa bbb ccc # I dont get the empty line which i specified in that file in windows. Please help me, which in unix... (5 Replies)
Discussion started by: Nandagopal
5 Replies

7. Shell Programming and Scripting

FTP scrtip: Unix to windows directory

Hi, I'm trying to automate a ftp from a unix box to a windows directory. But i want it to count and only move the files if they are there so that i can cron it. This is what i have, but seems to be failing, can anyone spot what is going wrong? #! /usr/bin/ksh cd ????/????/par/942852... (4 Replies)
Discussion started by: dappa
4 Replies

8. UNIX for Dummies Questions & Answers

Transfer files from Unix server to Windows using FTP

Dear Friend, I don't know much about unix.I am an VB6.0 Programmer.I need to move an text files as aaa.txt from unix server to windows "D: " driver using the FTP protocol.Is it possible to do this with help of unix shell script.If possible please give some sample codes. Please answer as early... (1 Reply)
Discussion started by: gjsaravanan
1 Replies

9. Shell Programming and Scripting

transfer of files via ftp from windows to unix

I am currently looking to write a script to transfer files from a windows NT server to a unix server any ideas of how to go about this? (1 Reply)
Discussion started by: chambala5
1 Replies

10. UNIX for Dummies Questions & Answers

Trying to transfer b/w Unix and Windows

Hello everyone, I am trying to copy a large file from our SCO server to Win2000, burn it and then copy to our new server. Here's my problem. The file I am transfering is about 90 meg. When I use ftp from the windows machine and use the get command, it transfers the file but when I look at the... (6 Replies)
Discussion started by: dirtysparks
6 Replies
Login or Register to Ask a Question