-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 25-Oct-2002/10:34 +0800, Daniel Tan <[EMAIL PROTECTED]> wrote:
>I have a file that i want to copy to each individual user's directory that
>is named as 1, 2, 3, ..... the filename is username.abook
>i need to write a script to some sort of automate the copying process into
>each directory and then find out the folder contains whose name and then
>overwriting the original file in it....
>
>sounds confusing?
>
>my scenario:
>i have a bunch of folders namely 1,2,3,4,5,6,7,8,9..................
>each folder actually contains a user's webmail settings.....username.abook,
>username.sig,username.pref
>i want to copy a file that can be used to overwrite all the *.abook in all
>the 1,2,3,4,5,6,7,8,9 directories...
>i need a script to automate the process....or a simple command for copying
>it without me having to find out directory 1 contains which user and
>directory 2 contains which user...

You have to have a way to tell the script which user's data is in each
directory. Is the directory owned by the user? Is there a config file
somewhere with all the directory mappings in it? There are ways to do
this, but they're not magic. The script has to be able to figure out what
user is associated with each directory.


Tony
- -- 
Anthony E. Greene <mailto:Anthony%20E.%20Greene%20%3Cagreene@;pobox.com%3E>
OpenPGP Key: 0x6C94239D/7B3D BD7D 7D91 1B44 BA26  C484 A42A 60DD 6C94 239D
AOL/Yahoo Messenger: TonyG05    HomePage: <http://www.pobox.com/~agreene/>
Linux. The choice of a GNU generation <http://www.linux.org/>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Anthony E. Greene <mailto:agreene@;pobox.com> 0x6C94239D

iD8DBQE9uSxApCpg3WyUI50RAvTuAJ0eecjcim+HQdvaXc9UpGbxHt1fjACfbUkw
7ry+frJ3xIGVxr08+LFj5Kg=
=4HfG
-----END PGP SIGNATURE-----



-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@;redhat.com?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to