FTP command to search recursively in windows folder


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting FTP command to search recursively in windows folder
# 1  
Old 10-18-2007
FTP command to search recursively in windows folder

Hi

what command to be used to FTP files from the windows directory into a folder in unix environment using shell script

The script should be able to recursively search into 100 subdirectories within my windows directory for .xml files.

Can anyone help me with this...

thnx
# 2  
Old 10-18-2007
1. Where are you starting from? Which environment is the client?

2. Are you using batch files or some posix environment on Windows?
# 3  
Old 10-18-2007
A scheduler in the unix environment will run a unix script which should FTP the files after recursive search in the windows directory and transfer the files to unix directory.
# 4  
Old 10-18-2007
Why don't you use the Window's task scheduler to kick off the task to search a windows directory?

The FTP goes from Windows to UNIX?
# 5  
Old 10-18-2007
These r d constraints given to me:
1)Using the scheduler in unix env...i can schedule only unix script
2)My present unix script opens a FTP connection and will find the .xml files from a particular windows directory path mentioned in the unix script and will FTP those files from windows to unix but does not search the sub directories recursively in windows.

so, wat is the ftp command to do a recursive search of a sub directories
# 6  
Old 10-18-2007
Quote:
Originally Posted by lakshmis10
so, wat is the ftp command to do a recursive search of a sub directories
You aren't going to like the answer that there isn't one.

The FTP protocol does not support recursive file searches on a remote machine.

You might want to recommend to who ever is giving you your requirements that it is more efficient for the windows box to be scheduled to do the search then only contact the UNIX machine when there is something to transfer.
# 7  
Old 10-18-2007
Oh Ok..
Is there any other way apart from scheduling a DOS script...
I have tried to code in DOS to do a recursive search and it works....
so Is it possible to convert the DOS script into a unix script to serve my requirement. Do all DOS commands have their equivalent commands in unix
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How can I use find command to search string/pattern in a file recursively?

Hi, How can I use find command to search string/pattern in a file recursively? What I tried: find . -type f -exec cat {} | grep "make" \; Output: grep: find: ;: No such file or directory missing argument to `-exec' And this: find . -type f -exec cat {} \; -exec grep "make" {} \;... (12 Replies)
Discussion started by: cola
12 Replies

2. Shell Programming and Scripting

How to download recursively a folder using /usr/bin/ftp and cshell?

Hi, friends, I am meet a ftp download problem when using cshell and /usr/bin/ftp command. I want to download recursively a folder dira from FTP server. dira ---dira1-----dira2------dira3-----dira4 |--file11 |--file21 |--file31 |--file41 |--file12 |--file22 |--file32 ... (1 Reply)
Discussion started by: weichanghe2000
1 Replies

3. Ubuntu

How to find symbolic links recursively under a folder in Linux

Hi , I have folder which has almost 35000 objects, I need to find out or list the objects which are symbolic links. I tried f. I am not getting right Can you pls help Regards amv (5 Replies)
Discussion started by: amvarma77
5 Replies

4. Shell Programming and Scripting

FTP from Unix Shell script to Windows Shared folder ?

Hi Before Posting my query in this forum, I have gone through various similar postings to get some idea on ftp and how to do that from unix shell script to windows server. My question is related to FTP'ing from Unix to windows shared folder My basic question is 1. Is it possible to do FTP... (4 Replies)
Discussion started by: shekharjchandra
4 Replies

5. Shell Programming and Scripting

recursively remove javascript from all folder index files

Hi All, A site I manage had some javascript inserted into each folders index file. Can anyone priovide me with some ideas on how to use awk, sed or some other bash script to parse through each of the site folders and remove this code? If I have to do it by hand I'm going to go insane. :eek: ... (2 Replies)
Discussion started by: lsalsich
2 Replies

6. UNIX for Advanced & Expert Users

Recursively concatenate files in subdirectories with the same folder name

I'm trying to concatenate files in subdirectories with the same folder name. Say concatenate all the files in the 'current' subdirectories in 'Literature' parent directory. Literature/USA/current/ Literature/Europe/current/ Can anyone help with it? Thanks a lot! (2 Replies)
Discussion started by: joyce007
2 Replies

7. UNIX for Dummies Questions & Answers

recursively concatenate files in subdirectories with same folder name

I'm trying to concatenate files in subdirectories with the same folder name. Say concatenate all the files in the 'current' subdirectories in 'Literature' parent directory. Literature/USA/current/ Literature/Europe/current/ Can anyone help with it? Thanks a lot! (2 Replies)
Discussion started by: joyce007
2 Replies

8. Windows & DOS: Issues & Discussions

How can I upload a zip folder on a unix path from my windows folder?

Hello, I am an amature at UNIX commands and functionality. Please could you all assist me by replying to my below mentioned querry : How can I upload a zip folder on a unix path from my windows folder? Thanks guys Cheers (2 Replies)
Discussion started by: ajit.yadav83
2 Replies

9. UNIX for Dummies Questions & Answers

create folder in windows from unix while FTP

Hi, I would like to know if it's possible to create a folder in a Windows Server while running a ftp script in Unix. The idea is to create a script that searches for different files in folders, and when the file is found, take the path of that file and create it to Windows and ftp the file to... (0 Replies)
Discussion started by: Metalero de Oz
0 Replies

10. UNIX for Dummies Questions & Answers

How to move recursively into one folder

Hi, I have a folder with a million subdirectories which all have a million files in them (some of them duplicates).. I am looking for the right program command to move all of the files out of the directories and into one folder-- and replace all of the duplicates.. If anyone has any ideas,... (2 Replies)
Discussion started by: patrick99e99
2 Replies
Login or Register to Ask a Question