Sponsored Content
Top Forums Shell Programming and Scripting Recursive FTP -- here at last. Post 302101279 by Enter_cesar on Saturday 30th of December 2006 03:29:17 PM
Old 12-30-2006
works great

Excellent work im now migrating a big site like 600mb or so, i see that it has trouble with directories that contain subdirectories it gives an error Smilie but the rest it`s great you might want to check on that thanks a lot Smilie
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Recursive FTP

I am trying to write a recursive FTP script and have come to a point where I need to test if the file is either a normal ascii file or a directory. My question is how do I test if the file is either ascii or directory. (1 Reply)
Discussion started by: aslamg
1 Replies

2. UNIX for Dummies Questions & Answers

recursive effect!!

I run the following command in some of my folders... and ended up with a huge mess!! find . -type f -exec perl -e 's/blabla/zzzxxxx/gi' -p -i.bak {} \; I had to kill the process and later when I checked with one of my folders.. ls vaditerm.dt.bak vaditerm.dt.bak.bak... (2 Replies)
Discussion started by: sskb
2 Replies

3. Shell Programming and Scripting

perl + Net::FTP::Recursive

Problem: It will not advance to the next user in the list. It always dies right after it sends the 2/2 files from the first users dir. $USERLIST="/export/home/mxdooley/perl_ftp/userlist"; $USER_DIR="/export/home/mxdooley/perl_ftp/homes";... (2 Replies)
Discussion started by: Optimus_P
2 Replies

4. Shell Programming and Scripting

recursive rcp

I wrote a shell script (AIX) to extract the file "/rep1/toto" from all the hosts referred in a list and send them to one local directory named ~/$host-$file with the hostname as prefix rcp -p user@host:/rep1/$file ~/$host-$file where file = toto ==> it works ! I would do the same thing... (6 Replies)
Discussion started by: Nicol
6 Replies

5. UNIX for Advanced & Expert Users

recursive sorting

In the ls command, -t option and -R option dont work simultaneously. ls -t ---> lists the files with sorting based on file date ls -R ---> lists the files recursively. How to make utilize both in the same command.? I want to sort the recursive files listing.. (1 Reply)
Discussion started by: fermisoft
1 Replies

6. Cybersecurity

Recursive SFTP

Hello, I need to transfer files from Serve1 to Server2. Previously I was using scp command. Now I have to use sftp (due to audit issues). The problem with sftp is (atleast to my level of knowledge) we cannot transfer dirs (and files within that dir). Is there a way to solve this? Looks like... (1 Reply)
Discussion started by: MohanTJ
1 Replies

7. UNIX for Dummies Questions & Answers

recursive wc on a directory?

Hi all, I need to count the number of lines in all the files under a directory (several levels deep). I am feeling extremely dumb, but I don't know how to do that. Needless to say, I am not a shell script wiz... Any advice? thanks in advance! (13 Replies)
Discussion started by: bimba17
13 Replies

8. UNIX for Dummies Questions & Answers

Recursive Permissions???

Is there anyway that I can change permissions on a directory and all its sub-directories and files using one single "chmod" command?? (5 Replies)
Discussion started by: the_red_dove
5 Replies

9. UNIX for Dummies Questions & Answers

recursive search and ftp

Could someone help me in recursive search and ftp'ing the files to remote server? The host machine will have /dir1/dira/list_of_files1 /dir1/dirb/list_of_files2 /dir1/dirc/list_of_files3 . . . so., I need to search from dir1 recursively (only one level down) and find all the files that... (1 Reply)
Discussion started by: brahmi
1 Replies

10. OS X (Apple)

Search recursive

before posting, I have tried to find my answer elsewhere. no luck. I need to find a file buried in a folder somewhere. Master folder has 10 sub folders. each sub folder has folders too. I found this but it does nothing I am on Mac and use Applescript. do shell script "find... (2 Replies)
Discussion started by: sbrady
2 Replies
dohash(8)						      System Manager's Manual							 dohash(8)

NAME
dohash, undohash - Hashes or unhashes IMAP configuration directories SYNOPSIS
/usr/sbin/dohash [-f] [-h] [-i] /usr/sbin/undohash OPTIONS
The following options are available only for the dohash command: Forces the hashing process to continue even if the command encounters errors. Prints a usage message for the command. Runs the hashing process interactively. DESCRIPTION
The dohash command converts the IMAP configuration directories from the format for older versions of the Cyrus IMAP4 Revision 1 server to the new format for Version 1.6.1 or higher. Starting with Version 1.6.1 of the server, the IMAP user files in the quota and user directories are stored in a through z subdirectories, sorted by the first character of each user name. This arrangement reduces the number of entries in a given directory and consequently increases performance and scalability. The dohash command creates the a through z subdirectories and sorts the existing IMAP files as described; the undohash command reverses this process, in case you need to revert to a previous version of the server. You can optionally sort the users' directories in the IMAP mail spool in the same manner if you enable the hashimapspool option in the /etc/imapd.conf file before invoking the dohash command. See imapd.conf(4) for more information. Note that you must be logged in as the imap user to use the dohash command; otherwise, the newly-created subdirectories will not have the proper ownership. EXAMPLES
The following example shows output from the dohash command: # /usr/sbin/dohash configuration directory /var/imap... hashing user directory hashing quota directory done hashing In this example, the configuration directory is /var/imap; therefore, you could check that the dohash command has successfully hashed the directories by using the ls command as follows: # ls /var/imap/quota /var/imap/user /var/imap/quota: a b c d e f g h i j k l m n o p q r s t u v w x y z /var/imap/user: a b c d e f g h i j k l m n o p q r s t u v w x y z The slash () indicates line continuation. FILES
Configuration file for the IMAP server. Specifies the location of the IMAP configuration directory. SEE ALSO
Commands: imapd(8) Files: imapd.conf(4) Network Administration dohash(8)
All times are GMT -4. The time now is 05:15 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy